No canonical url at categories

  • Posts: 94
  • Thank you received: 2
  • Hikashop Business
4 years 3 weeks ago #329754

-- HikaShop version -- : 4.4.0
-- Joomla version -- : 3.9.24
-- PHP version -- : 7.4
-- Browser(s) name and version -- : FF 85.0.2 mac
-- Error-message(debug-mod must be tuned on) -- : not applicable

Hi,

Do I have to manually fill the canonical URL for categories while having set 'Force canonical URLs on listings' to 'Use canonical URL and generate it if missing'? Because the canonical url field at the categories remains empty. I'm asking, because search engines are indexing the ?limitstart= URL's when using more pages for a listing and ?limitstart=0&filter when using filters at the listing pages. What is best practise to deal with this?

Thanks in advance!

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

  • Posts: 83404
  • Thank you received: 13497
  • MODERATOR
4 years 3 weeks ago #329760

Hi,

You don't have to fill the canonical URL.
The canonical URL is there to tell the search engine that regardless from where you access one page, it's one same page. That avoids the "duplicate content" error : developers.google.com/search/docs/advanc...es/duplicate-content
But if you don't have different URLs to access the exact same page, you don't have to provide it.
The fact that google is indexing pages with the extra parameters in the URL for the pagination and the filter should not be a problem. I would leave it like that.

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

  • Posts: 94
  • Thank you received: 2
  • Hikashop Business
4 years 3 weeks ago #329775

Hi Nicolas,

Why does Hikashop automatically fills the canonical url of products, but not of categories? And why not provide an canonical to the categories?

Cheers,
Remco

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

  • Posts: 83404
  • Thank you received: 13497
  • MODERATOR
4 years 3 weeks ago #329805

Hi,

When you set 'Force canonical URLs on listings' to 'Use canonical URL and generate it if missing', HikaShop will automatically fill the canonical URL for both products and categories.
However, it will only fill them when it has to generate the URL to go to the category / product.
So for products, it will fill it when you display on the frontend a listing of products with that product in it.
And similarily, it will fill it for a category when you display on the frontend a listing of categories with that category in it.
Since you're saying that the canonical URL of categories are not filled even though you have that option activated and it works for products, it means that you don't have a listing of categories on your frontend.
And I checked your frontend and it confirms this theory. I can see that you've created one menu item for each category and that you have modules to display a listing of these menu items, but not directly a listing of categories displayed by HikaShop like here:
demo.hikashop.com/index.php/en/hikashop/...g/display-in-div-div

The following user(s) said Thank You: RustyHika

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

  • Posts: 94
  • Thank you received: 2
  • Hikashop Business
4 years 3 weeks ago #329886

Hi Nicolas,

Clear! Thanks for the good explanation!

Cheers,
Remco

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

Time to create page: 0.059 seconds
Powered by Kunena Forum