Menu Content

Support

> Forums, FAQs & Paid Support
Welcome, Guest
Username Password: Remember me

Canonical link doubled with different URLs
(1 viewing) (1) Guest
Support forum for customers who have purchased this product with priority support pack. Archive only, no new post can be added.

NOTE: This category has been locked. If you have purchased paid version, please, use our Support Ticket system instead. If you are using free edition, please see the Community Support section.
  • Page:
  • 1
  • 2

TOPIC: Canonical link doubled with different URLs

Canonical link doubled with different URLs 10 years ago #43867

Hi,

I´m facing the following problem in two different situations:

  1. When entering canonical link on JoomSef "Manage SEF URLs" the result I have on source code is two canonical links; the one of the URLs itself + the one I´ve entered. Please check www.gasfriocalor.com/aire-acondicionado-...ural-comfort-e-3-5kw
  2. And this one is exeptional and I just don´t understand due it´s just a Joomla´s menu button pointing to KuneaForum. Please check http://www.gasfriocalor.com/foro


as I already know you have a great support, I already thank you in advance for your soonest and great help :)

If you need to check backoffice let me know where to send you a superuser access.

Best regards,
The topic has been locked.

Re: Canonical link doubled with different URLs 10 years ago #43879

  • dajo
  • OFFLINE
  • Posts: 5069
Hi,

It seems that on Joomla 3 the System - SEF plugin automatically generates the canonical link in addition to JoomSEF.
Unfortunately, currently the only solution is to either disable the System - SEF plugin if you don't need it, or modify its source code. In case you want to do the modification, follow these steps:
1. Locate the /plugins/system/sef/sef.php file on your web server
2. IMPORTANT: Backup the file!
3. Edit the file in a text editor
4. Find the following lines:
if ($uri !== $link)
{
$doc->addHeadLink(htmlspecialchars($link), 'canonical');
}

and change them to:
if ($uri !== $link)
{
//$doc->addHeadLink(htmlspecialchars($link), 'canonical');
}


That way the standard canonical link from Joomla won't be generated.
ARTIO Support Team
The topic has been locked.

Re: Canonical link doubled with different URLs 10 years ago #43880

I´m using Joomla 2.5 (not Joomla3).
On my web server /plugins/system/sef/sef.php do not exist the line $doc->addHeadLink(htmlspecialchars($link), 'canonical');

Please, let me know.

Best regards,
The topic has been locked.

Re: Canonical link doubled with different URLs 10 years ago #43891

  • dajo
  • OFFLINE
  • Posts: 5069
Hi,

Joomla 2.5 doesn't generate the canonical link by default, so there must be some other component or plugin generating its own canonical link. Unfortunately, Joomla currently doesn't handle canonical link being set from multiple plugins very well, so there's not much that can be done about it. You would need to identify the componet or plugin creating its own canonical link and modify it.
We will try to handle this in next version of JoomSEF, so if there's already some canonical link set from different source, it will be removed. If you can't wait for the new version handling this, I can only offer you our paid support service to implement the feature for you.
ARTIO Support Team
The topic has been locked.

Re: Canonical link doubled with different URLs 10 years ago #43897

Dajo,

The only thing I´ve installed regarding URLs, Meta-tags, it´s Artio JoomSef. Actually before NO canonical link was generated.
When looking for this (how to gestionate canonical links) I´ve supposed that your component would be just great due for sure u thought about that already. So then is when in JoomSef configuration I´ve found the option "Automatic canonical link generation" that I had on "no" and I´ve changed to "yes".
From that moment canonical links appeared on the web
and was just great due it´s just what I was looking for.

But, of course I have products that are REALLY similar to others so I need to change the canonical link that JoomSef was generating by default, so then is when I entered on some URLs an especific canocial link. The result is that canonical links are doubled.

Dajo, your paid help (I´ve already used it for an issue regarding VM component and was just great!!).
But now, please, if you need access to the backoffice in order to check let me know how to send it to you. If you find a component/plugin generating Canonical links beside JoomSef I´ll transfer you 50€, if not please let me know a solution ;)

I´ll be expeting your soonest news.

Best regards,
The topic has been locked.

Re: Canonical link doubled with different URLs 10 years ago #43952

  • dajo
  • OFFLINE
  • Posts: 5069
Hi,

JoomSEF always generates only one canonical link. If "Automatic canonical link generation" is enabled, it generates a canonical link to pure SEF URL on pages, where some non-SEF variables are present in the URL. This automatically generated canonical link is overriden, if you set some custom canonical link for a specific SEF URL.

Do you use VirtueMart for your e-shop? I've found out that VirtueMart generates its own canonical links on its pages, so when a canonical link is also generated by JoomSEF, they get doubled. Other components may have the same behaviour. We will test this and if possible we'll try to handle it in future version of JoomSEF. In the meantime, I can offer you our paid support service to modify VirtueMart's code not to generate the canonical links, so you can use custom canonical links set in JoomSEF.
ARTIO Support Team
The topic has been locked.
  • Page:
  • 1
  • 2
User Login Empty