• Home
  • Get help
  • Ask a question
Last post 11 hours 11 min ago
Posts last week 141
Average response time last week 4 hours 42 min
All time posts 67824
All time tickets 10480
All time avg. posts per day 21

Helpdesk is open from Monday through Friday CET

Please create an (free) account to post any question in the support area.
Please check the development versions area. Look at the changelog, maybe your specific problem has been resolved already!
All tickets are private and they cannot be viewed by anyone. We have made public only a few tickets that we found helpful, after removing private information from them.

#7151 – Multiple Canonical Tags

Posted in ‘sh404SEF’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Saturday, 02 May 2020 12:16 UTC
gs_john
 Hello,

My latest SEO audit is saying we have multiple canonical tags on 161 pages of our site. I have confirmed this by viewing the source code: view-source:https://xxxx.com/

Do you know what could be causing this?

In Sh404sef's configuration settings, under the SEO tab, I have Remove other canonicals set to yes.

Kind regards,
John
 
Monday, 04 May 2020 09:24 UTC
wb_weeblr
Hi

Not only do you have multiple canonicals but also OGP tags (and the non-sh404SEF are not very good, missing most stuff)



K2 would do that but this is an SPPagebuilder page so I don't know whether they are the ones adding that.

I would start by disabling any even vaguely SEO related extension you may have (clearing Joomla cache in between each attempt) .

Also worth asking SPPageBuilder about that, if they are the ones adding that, it might be possible to disable it in settings.

Lastly, you may want to temporarily switch template back to Protostart, Joomla built-in template, as your template may also be doing that.

In Sh404sef's configuration settings, under the SEO tab, I have Remove other canonicals set to yes.
This is working with Joomla-generated Canonical, I think the attribute ordering of that canonical is tripping our removal expression. I'll look into it and get back to you.

Best regards

Yannick Gaultier
weeblr.com
@weeblr
 
Monday, 04 May 2020 09:30 UTC
wb_weeblr
Hi

I think the attribute ordering of that canonical is tripping our removal expression.
I take that back, I just checked and the algorithm works regardless of the link tag attributes.

I tested by manually adding "<link href="https://xxxx.com/" rel="canonical" />" to the template and sh404SEF indeed removes it automatically.

So it has to be something adding it back but it's a bit odd as sh404SEF really performs the removal very, very late in the process of building the page, not much should happen after that.

I can see you're going through Cloudflare. Is it possible it's Cloudflare adding it?

Best regards

Yannick Gaultier
weeblr.com
@weeblr
 
Monday, 04 May 2020 14:36 UTC
gs_john
Hi Yannick,

I did find that SP Page Builder added OG & Twitter cards to PageBuilder pages. I disabled those, they do not have any option for canonical, but that doesn't mean it's not the cause. I posted a request on their forum about duplicate canonicals. If it is them, I'm hoping they add a disable switch for that feature as well.

Only SEO tool I use is SH404sef, but I'll check and see if there is anything else installed.

Never had this problem before, which has me leaning to the latest SP PageBuilder update as the cause.

Thank you,
John
 
Monday, 04 May 2020 15:04 UTC
wb_weeblr
Hi

What's odd is that even if SPPB adds this, it should be removed by sh404SEF. On my local machine, I copied your exact snippet:

<link href="https://xxxx.com/" rel="canonical" />

pasted it into my template to be sure it's included in the page and sure enough sh404SEF did remove it.

Let me know what happens with SPPB, we can dig further then.

Best regards

Yannick Gaultier
weeblr.com
@weeblr


 
Monday, 04 May 2020 19:25 UTC
gs_john
Hi Yannick,

I found this in my templates index.php file

     <link rel="canonical" href="/<?php echo JUri::current(); ?>">


I removed it and seems to have fixed the issue, of course the next template update will wipe it out.

Kind regards,
john
 
Tuesday, 05 May 2020 08:46 UTC
wb_weeblr
Hi John,

of course the next template update will wipe it out.
Yep, likely. That's when you should talk to your template supplier and tell them:

- they should not add a canonical in the template
- JUri::current() should never be used for that purpose, it's only the current request path, it's not related to a page canonical URL.

The template is not able to determine which page is the canonical, which is why it should not attempt at setting it.

I will leave this ticket open in case you need to add something. It will automatically close in 2 weeks if no further comment is made.

Best regards

Yannick Gaultier
weeblr.com
@weeblr
 
Tuesday, 05 May 2020 14:28 UTC
gs_john
Hi Yannick,

I reached out to Joomshaper about this, now that I removed that line, all SP PageBuilder pages have no canonical.

Kind regards,
John
 
Tuesday, 05 May 2020 14:30 UTC
wb_weeblr
Hi John,

all SP PageBuilder pages have no canonical.
Perfect then, they don't need any.

Best regards

Yannick Gaultier
weeblr.com
@weeblr
 
Tuesday, 05 May 2020 14:34 UTC
gs_john
Hmm, this is weird. Seems the blog category pages are missing the canonical too: view-source:https://xxxx.com/blog/general/
 
Tuesday, 05 May 2020 14:35 UTC
wb_weeblr
Hi

Why would they have any? sh404SEF is certainly not putting any such thing.

Best regards

Yannick Gaultier
weeblr.com
@weeblr
 
Wednesday, 20 May 2020 05:34 UTC
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.