Menu Content

Podpora

> Diskusní fóra, FAQs & placená podpora
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

Re: Canonical link doubled with different URLs 10 years, 7 months ago #44066

Hi Dajo,

Look at some info about VM2 canonical link generation. On it´s code it´s perfectly divided in each view it´s creation. So I´ve disabled it only on product details pages.
I write the hack in VM2 code for product details pages

Go to /components/com_virtuemart/views/productdetails/view.html.php
On lines 207 and 208 (on my VM2 version) you´ll find the lines
// Set Canonic link
$document->addHeadLink($product->canonical, 'canonical', 'rel', '');

Just comment the second line so the Canonical link will be not added. Then all canonical links of product pages will be controled just by JoomSef. And when I type in JoomSef Url an especific Canonical link it´s not doubled :D
For example in www.gasfriocalor.com/aire-acondicionado-daikin-tx25jv

Dajo, what problem do you think it´s happening in view-source:www.gasfriocalor.com/foro? That one it´s just a Joomla2.5 menú button pointing to Kunena Forum
Please let me know where to look in order to solve this doubled canonical link ;)

I thank you in advance for your soonest answer.

Best regards,
The topic has been locked.

Re: Canonical link doubled with different URLs 10 years, 7 months ago #44085

  • dajo
  • OFFLINE
  • Posts: 5069
Hi,

I think there will be the same issue as with VirtueMart. You can try searching for the "addHeadLink" function being used in Kunena source codes to find a place where canonical link gets created.
ARTIO Support Team
The topic has been locked.
  • Page:
  • 1
  • 2
Přihlášení uživatele Prázdný