I've worked on a student accommodation site where every canonical tag I checked pointed at an address starting https://https://. It was a malformed canonical with the protocol in there twice, so each page was naming a URL that doesn't exist as its main version.
When the same fault shows up on every page, the obvious suspect is the template. Templates belong to the developer, so the usual next step is a ticket: describe the bug, attach a few examples and wait for it to come round in the queue.
This one didn't need a developer. The fix was in how one field was filled in.
What a malformed canonical tag does
A canonical tag tells Google which URL you'd like treated as the main version of a page. Google reads it as a strong hint rather than an order, and weighs it alongside other signals such as redirects, internal links and your sitemap.
A canonical pointing at an address that can't load isn't much of a hint. Google is likely to ignore it and choose a canonical for itself, which may or may not be the URL you'd have picked. On a site with lots of near-identical pages, getting that choice right was the whole point of the tag.
It's also an easy fault to miss. The CMS screen shows a sensible URL and the page looks fine in a browser. You usually only spot it in the HTML, in a crawl or in URL Inspection.
The fix was in the field
The CMS template adds https:// in front of whatever goes into the field. Type the full address, https:// included, as most of us would, and the page goes out with the protocol twice.
So the field wanted the address without the https://. Leave it off and the template's own https:// finishes the job.
If the admin screen doesn't say what format a field expects, one that asks for a URL looks as though it wants the whole thing. The only way to find out otherwise is to test it.
Test one page before you write the ticket
Before you raise a developer case for a sitewide bug, find out what the field does. It's a quick job:
- Change the field. Here, that meant entering the URL without https://.
- Open the source of one live page. Clear any page cache first, or you may be looking at the old version, and don't rely on the CMS preview or an old crawl export.
- Find the canonical tag in the HTML and check the URL is exactly what you meant. My indexing checker will also flag a canonical that doesn't point back at the page.
- If it's right, make the same change wherever else the field is used and check a page from each of the other templates. If it isn't, change it back, and you've got the start of a much better ticket.
Viewing the source is the step that matters. Whatever the field says, the page goes out with whatever the template builds from it, and that's the version Google reads. If the site sets its canonicals with JavaScript, look at the rendered HTML as well, using URL Inspection in Search Console, and make sure the raw and rendered versions don't disagree.
Why five minutes beats a ticket
A ticket for a sitewide template bug is a fair-sized ask. Someone has to find the template, work out what's wrong and test a fix, and it joins a queue with everything else on their list. If the template turns out to be doing exactly what it was built to do, that time went on proving it.
Testing the field is quick. If it's the cause, you can make the fix yourself without waiting on anyone. If it isn't, the ticket you send already rules the field out, which saves the developer a chunk of the digging.
A lot of my work comes through agencies, so I'm often a step or two away from whoever maintains the site. A ticket that comes back marked "working as intended" costs everyone a round of emails, and I'd rather spend those minutes testing.
Check the source after a migration too
This kind of fault often turns up after a rebuild or a move to a new platform. Fields with the same label can behave differently from one CMS to the next: one might want a full URL where the next wants a path or fills in half the address for you. Values copied across in bulk can keep whatever format the old system used.
So once the new site is live, open the source on one page from each template and check the canonical, the title and the meta robots tag say what you expect. You don't need a crawl to know a template fault is there. One page's source will do, and the crawl can tell you how far it goes afterwards. Checking canonicals on the live site is on my website migration checklist.
Faults like this one also tend to produce big numbers in a crawl report for what turns out to be a single fix, which is why I group audit findings by cause before I count anything.
If a crawl has turned up something sitewide and you can't tell whether it's the template, a setting or a field, that's the kind of thing I work through as part of technical SEO.
