Duplicate pages without canonical

  • Posts: 89
  • Thank you received: 2
1 year 7 months ago #344277

-- HikaShop version -- : 4.6.1
-- Joomla version -- : 3.10.10
-- PHP version -- : 7.4.30
-- Browser(s) name and version -- : ALL
-- Error-message(debug-mod must be tuned on) -- : N/A

Hey Hika Team!
I have pulled my Hikashop website into Ahrefs...
It states that I have 1340 Duplicate pages without canonical.
Their explanation is here : help.ahrefs.com/en/articles/2596742-dupl...-error-in-site-audit
The page I see when I look at the Hikashop page are all the pages when a visitor clicks on the "Contact us for more information"
Example : demo.hikashop.com/index.php/en/hikashop/...roduct/contact/cid-4
What can I do about this? Is there some setting in Hikashop I didn't get right?

Please Log in or Create an account to join the conversation.

  • Posts: 81540
  • Thank you received: 13071
  • MODERATOR
1 year 7 months ago #344294

Hi,

I'm surprised this tool would flag the contact pages.
If you look at the HTML of the contact us buttons, you can see this:
i.imgur.com/XMFlbfe.png
So HikaShop asks search engines to not follow/index the contact buttons.
And thus the fact that different URLs lead to the same contact form page is irrelevant.

Now, what you can do is add the code:

<?php
	$doc = JFactory::getDocument();
	$doc->addHeadLink(hikashop_cleanURL(hikashop_completeLink('product&task=contact'.$this->url_itemid)), 'canonical');
?>
at the beginning of the view file product / contact in the menu Display>Views.
That way, even if ahrefs ignores the nofollow/noindex on the buttons, it won't complain about the contact form pages.
But it won't change anything for your SEO.

Please Log in or Create an account to join the conversation.

Time to create page: 0.055 seconds
Powered by Kunena Forum