We’re with you. JoomShaper is offering a 20% Discount on all plans due to the impact of COVID-19.

Support Online : Mon - Fri / 10am - 6pm (GMT +6)

Your Time: Our Time:

Double Canonical Links - how to avoid?

Featured Lock Resolved Issue

I was checking my site (based on FIXTER) with a SEO-tool.

For structured SEO-readyness, the tool gave my site 0% out of 100%. I was checking the reason for it and found out that 35 pages have more than one canonical link.

I checked one of the pages and found this twice in the header:

<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="canonical" href="/....http://meine.miet.id/blog/empfehlungsschreiben-vom-arbeitgeber">

and further below:

<meta name="generator" content="MYOB" />
<title>Empfehlungs-Schreiben vom Arbeitgeber - miet.ID Blog für Mieter, Vermieter und Makler</title>
<link href="/....http://meine.miet.id/blog/empfehlungsschreiben-vom-arbeitgeber" rel="canonical" />

Although the affected pages are all related to blog pages of EasyBlog, I can say that I am using Easyblog also on two other sites with another template (Flex of Appliko, based on Helix 3), where this problem doesn´t persist.

Is there a way to switch of the canonical feature in Helix Ultimate for certain pages or category in order to avoid double canonical.markup?


4 Answers

Paul Frankowski - Staff

More than a month ago #Permalink
Helix Ultimate have built-in canonical links,
you cannot disable, but you can cut it off from code.

Edit: templates\shaper_fixter\index.php
DELETE line 105:

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

so you will be able to use canonical from your SEO extension everywhere.
or to fix our code use this instead:

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

it will be added in next template update.


More than a month ago #Permalink
Thank you Paul. Just discovered your answer as it got stuck in the spam filter.
I took out line 105 as if I just replace it with the other code as you suggested, double links will still persist.
Now my SEO-tool seems to be happy. Let´s see if Google is also happy :)

Paul Frankowski - Staff

More than a month ago #Permalink
Alex, did you know that google is happy only when can track you and collect money from you.

There are no replies made for this post yet.
Be one of the first to reply to this post!




Community Users


Don’t miss any updates of our new templates and extensions and all the astonishing offers we bring for you.
We never spam

Joomla! ® name is used under a limited license from Open Source Matters in the United States and other countries. JoomShaper.com is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.

Connect Us