Declaring canonical links for pdf files - Weebly

I built my website using Weebly and Google search console is having a hard time with the pdf files I uploaded. Specifically, I get a lot of "Duplicate without user-selected canonical. These pages aren't indexed or served on Google" warnings because the pages are identified, but not the pdf files. Is there a way to establish the canonical links for the pdf files I've uploaded? 

1,262 Views
Message 1 of 2
Report
1 REPLY 1
Square Champion

Hello @grad2025 thanks for your post. It appears that for documents like PDFs, there’s no way to place canonical tags in the page header because there is no page <head> section. There could be a workaround...check out this article for some more info, specifically using HTTP headers to set canonicals (but I'm not sure how you'd accomplish this in your Square hosted site. Maybe another Square Seller would have some more technical experience in doing this.

1,205 Views
Message 2 of 2
Report