[Skip to main content](#vessel-content)

#   Canonical urls

##

- **[Giscard](/forum/user/56241-giscard "View Giscard's Profile")**
- [![Giscard's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/56241-giscard "View Giscard's Profile") Topic Author
- [ Offline](/forum/user/56241-giscard)

Less More

- Posts: 150
- Thank you received: 11
-
-

7 years 1 month ago [\#311412](#311412) by [Giscard](/forum/user/56241-giscard "View Giscard's Profile")  *[Canonical urls](/forum/26-product-category-display/898368-canonical-urls#311412 "Hello,  I did something wrong on canonical urls.  Some products have &quot;wrong&quot; canonical urls: they dont have the right path, instead of that they are pointing to a wrong path category like &quot;/index.php/hikashop-menu-for-brands-listing/product/product&#95;name&quot; or &quot;/index.php/books/product/product&#95;name&quot; (the product isnt a book). Some other products have the right canonical urls, pointing to the right URL.  I searched in forum and I noticed that I should have disabled the joomla's sef plugin. Also, I had the option &quot;No, generate the URLs&quot; on &quot;Force canonical URLs on listings&quot;  I would like to set the canonical urls in every product, especially in the wrong ones.  Thank you in advance.")* was created by *[Giscard](/forum/user/56241-giscard "View Giscard's Profile")*

Hello,

I did something wrong on canonical urls.

Some products have "wrong" canonical urls: they dont have the right path, instead of that they are pointing to a wrong path category like "/index.php/hikashop-menu-for-brands-listing/product/product_name" or "/index.php/books/product/product_name" (the product isnt a book). Some other products have the right canonical urls, pointing to the right URL.

I searched in forum and I noticed that I should have disabled the joomla's sef plugin. Also, I had the option "No, generate the URLs" on "Force canonical URLs on listings"

I would like to set the canonical urls in every product, especially in the wrong ones.

Thank you in advance.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTgzNjgtY2Fub25pY2FsLXVybHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86322
- Thank you received: 14279
-
-

7 years 1 month ago [\#311437](#311437) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Canonical urls](/forum/26-product-category-display/898368-canonical-urls#311437 "Hello,  I did something wrong on canonical urls.  Some products have &quot;wrong&quot; canonical urls: they dont have the right path, instead of that they are pointing to a wrong path category like &quot;/index.php/hikashop-menu-for-brands-listing/product/product&#95;name&quot; or &quot;/index.php/books/product/product&#95;name&quot; (the product isnt a book). Some other products have the right canonical urls, pointing to the right URL.  I searched in forum and I noticed that I should have disabled the joomla's sef plugin. Also, I had the option &quot;No, generate the URLs&quot; on &quot;Force canonical URLs on listings&quot;  I would like to set the canonical urls in every product, especially in the wrong ones.  Thank you in advance.")*

Hi,

If you want to have HikaShop fill in the canonical URLs for you you need to:
- clear all the canonical URLs of your products with a mass action: [ www.hikashop.com/forum/install-update/89...ith-mass-action.html](https://www.hikashop.com/forum/install-update/891962-how-to-empty-all-conical-url-s-with-mass-action.html)
- set the "force canonical URLs on listings" setting to "Use canonical URL and generate it if missing" in the HikaShop configuration
- browse the listings of the products on the frontend so that the system can generate the new canonical URLs of the products.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTgzNjgtY2Fub25pY2FsLXVybHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[Giscard](/forum/user/56241-giscard "View Giscard's Profile")**
- [![Giscard's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/56241-giscard "View Giscard's Profile") Topic Author
- [ Offline](/forum/user/56241-giscard)

Less More

- Posts: 150
- Thank you received: 11
-
-

7 years 1 month ago [\#311457](#311457) by [Giscard](/forum/user/56241-giscard "View Giscard's Profile")  Replied by *[Giscard](/forum/user/56241-giscard "View Giscard's Profile")* on topic *[Canonical urls](/forum/26-product-category-display/898368-canonical-urls#311457 "Hello,  I did something wrong on canonical urls.  Some products have &quot;wrong&quot; canonical urls: they dont have the right path, instead of that they are pointing to a wrong path category like &quot;/index.php/hikashop-menu-for-brands-listing/product/product&#95;name&quot; or &quot;/index.php/books/product/product&#95;name&quot; (the product isnt a book). Some other products have the right canonical urls, pointing to the right URL.  I searched in forum and I noticed that I should have disabled the joomla's sef plugin. Also, I had the option &quot;No, generate the URLs&quot; on &quot;Force canonical URLs on listings&quot;  I would like to set the canonical urls in every product, especially in the wrong ones.  Thank you in advance.")*

Hello,

Everything is fine now.

Thank you very much nicolas.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTgzNjgtY2Fub25pY2FsLXVybHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[Giscard](/forum/user/56241-giscard "View Giscard's Profile")**
- [![Giscard's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/56241-giscard "View Giscard's Profile") Topic Author
- [ Offline](/forum/user/56241-giscard)

Less More

- Posts: 150
- Thank you received: 11
-
-

7 years 1 month ago [\#311491](#311491) by [Giscard](/forum/user/56241-giscard "View Giscard's Profile")  Replied by *[Giscard](/forum/user/56241-giscard "View Giscard's Profile")* on topic *[Canonical urls](/forum/26-product-category-display/898368-canonical-urls#311491 "Hello,  I did something wrong on canonical urls.  Some products have &quot;wrong&quot; canonical urls: they dont have the right path, instead of that they are pointing to a wrong path category like &quot;/index.php/hikashop-menu-for-brands-listing/product/product&#95;name&quot; or &quot;/index.php/books/product/product&#95;name&quot; (the product isnt a book). Some other products have the right canonical urls, pointing to the right URL.  I searched in forum and I noticed that I should have disabled the joomla's sef plugin. Also, I had the option &quot;No, generate the URLs&quot; on &quot;Force canonical URLs on listings&quot;  I would like to set the canonical urls in every product, especially in the wrong ones.  Thank you in advance.")*

Hello,

I have the same problem on categories.
They are really messed up.

Can I fix them with Mass actions?

Thank you in advance.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTgzNjgtY2Fub25pY2FsLXVybHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86322
- Thank you received: 14279
-
-

7 years 1 month ago [\#311492](#311492) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Canonical urls](/forum/26-product-category-display/898368-canonical-urls#311492 "Hello,  I did something wrong on canonical urls.  Some products have &quot;wrong&quot; canonical urls: they dont have the right path, instead of that they are pointing to a wrong path category like &quot;/index.php/hikashop-menu-for-brands-listing/product/product&#95;name&quot; or &quot;/index.php/books/product/product&#95;name&quot; (the product isnt a book). Some other products have the right canonical urls, pointing to the right URL.  I searched in forum and I noticed that I should have disabled the joomla's sef plugin. Also, I had the option &quot;No, generate the URLs&quot; on &quot;Force canonical URLs on listings&quot;  I would like to set the canonical urls in every product, especially in the wrong ones.  Thank you in advance.")*

Hi,

Yes. It's the same process:
- clear all the canonical URLs of your categories with a mass action
- set the "force canonical URLs on listings" setting to "Use canonical URL and generate it if missing" in the HikaShop configuration
- browse the listings of the categories on the frontend so that the system can generate the new canonical URLs of the categories.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTgzNjgtY2Fub25pY2FsLXVybHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[Giscard](/forum/user/56241-giscard "View Giscard's Profile")**
- [![Giscard's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/56241-giscard "View Giscard's Profile") Topic Author
- [ Offline](/forum/user/56241-giscard)

Less More

- Posts: 150
- Thank you received: 11
-
-

7 years 1 month ago -  7 years 1 month ago [\#311507](#311507) by [Giscard](/forum/user/56241-giscard "View Giscard's Profile")  Replied by *[Giscard](/forum/user/56241-giscard "View Giscard's Profile")* on topic *[Canonical urls](/forum/26-product-category-display/898368-canonical-urls#311507 "Hello,  I did something wrong on canonical urls.  Some products have &quot;wrong&quot; canonical urls: they dont have the right path, instead of that they are pointing to a wrong path category like &quot;/index.php/hikashop-menu-for-brands-listing/product/product&#95;name&quot; or &quot;/index.php/books/product/product&#95;name&quot; (the product isnt a book). Some other products have the right canonical urls, pointing to the right URL.  I searched in forum and I noticed that I should have disabled the joomla's sef plugin. Also, I had the option &quot;No, generate the URLs&quot; on &quot;Force canonical URLs on listings&quot;  I would like to set the canonical urls in every product, especially in the wrong ones.  Thank you in advance.")*

Hello,

And how can I reset the category canonical url? I cant find the right field.

Thank you in avance..

Edit: it was early and didnt see the field in the category option. Sorry for bothering you.
Thank you for helping me.

Last edit: 7 years 1 month ago by [Giscard](/forum/user/56241-giscard "View Giscard's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTgzNjgtY2Fub25pY2FsLXVybHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[Giscard](/forum/user/56241-giscard "View Giscard's Profile")**
- [![Giscard's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/56241-giscard "View Giscard's Profile") Topic Author
- [ Offline](/forum/user/56241-giscard)

Less More

- Posts: 150
- Thank you received: 11
-
-

7 years 1 month ago [\#311525](#311525) by [Giscard](/forum/user/56241-giscard "View Giscard's Profile")  Replied by *[Giscard](/forum/user/56241-giscard "View Giscard's Profile")* on topic *[Canonical urls](/forum/26-product-category-display/898368-canonical-urls#311525 "Hello,  I did something wrong on canonical urls.  Some products have &quot;wrong&quot; canonical urls: they dont have the right path, instead of that they are pointing to a wrong path category like &quot;/index.php/hikashop-menu-for-brands-listing/product/product&#95;name&quot; or &quot;/index.php/books/product/product&#95;name&quot; (the product isnt a book). Some other products have the right canonical urls, pointing to the right URL.  I searched in forum and I noticed that I should have disabled the joomla's sef plugin. Also, I had the option &quot;No, generate the URLs&quot; on &quot;Force canonical URLs on listings&quot;  I would like to set the canonical urls in every product, especially in the wrong ones.  Thank you in advance.")*

Hello,

I navigate on the categories in the front end, after I deleted the canonical URL, but they didnt update in back-end.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTgzNjgtY2Fub25pY2FsLXVybHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86322
- Thank you received: 14279
-
-

7 years 1 month ago [\#311528](#311528) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Canonical urls](/forum/26-product-category-display/898368-canonical-urls#311528 "Hello,  I did something wrong on canonical urls.  Some products have &quot;wrong&quot; canonical urls: they dont have the right path, instead of that they are pointing to a wrong path category like &quot;/index.php/hikashop-menu-for-brands-listing/product/product&#95;name&quot; or &quot;/index.php/books/product/product&#95;name&quot; (the product isnt a book). Some other products have the right canonical urls, pointing to the right URL.  I searched in forum and I noticed that I should have disabled the joomla's sef plugin. Also, I had the option &quot;No, generate the URLs&quot; on &quot;Force canonical URLs on listings&quot;  I would like to set the canonical urls in every product, especially in the wrong ones.  Thank you in advance.")*

Hi,

You need to browse them from your main menu item which lists the categories.
If you browse them from the menu module itself, then it just displays the listing of the products of the category selected in the menu item, and thus there is no canonical URL to calculate.
It needs to display a listing of category. to calculate the canonical URL of each category in the listing.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTgzNjgtY2Fub25pY2FsLXVybHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[Giscard](/forum/user/56241-giscard "View Giscard's Profile")**
- [![Giscard's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/56241-giscard "View Giscard's Profile") Topic Author
- [ Offline](/forum/user/56241-giscard)

Less More

- Posts: 150
- Thank you received: 11
-
-

7 years 1 month ago [\#311559](#311559) by [Giscard](/forum/user/56241-giscard "View Giscard's Profile")  Replied by *[Giscard](/forum/user/56241-giscard "View Giscard's Profile")* on topic *[Canonical urls](/forum/26-product-category-display/898368-canonical-urls#311559 "Hello,  I did something wrong on canonical urls.  Some products have &quot;wrong&quot; canonical urls: they dont have the right path, instead of that they are pointing to a wrong path category like &quot;/index.php/hikashop-menu-for-brands-listing/product/product&#95;name&quot; or &quot;/index.php/books/product/product&#95;name&quot; (the product isnt a book). Some other products have the right canonical urls, pointing to the right URL.  I searched in forum and I noticed that I should have disabled the joomla's sef plugin. Also, I had the option &quot;No, generate the URLs&quot; on &quot;Force canonical URLs on listings&quot;  I would like to set the canonical urls in every product, especially in the wrong ones.  Thank you in advance.")*

Hello,

I navigate via the hyper menu, clicked on the first item in the main menu, redirect on the categories listings.
What I did wrong ?

Thank you in advance.

- [ ![nav&#95;1.jpg](/forum/attachment/47842) ](/forum/attachment/47842 "nav&#95;1.jpg") [ ](/forum/attachment/47842?download=1 "nav&#95;1.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTgzNjgtY2Fub25pY2FsLXVybHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86322
- Thank you received: 14279
-
-

7 years 1 month ago [\#311563](#311563) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Canonical urls](/forum/26-product-category-display/898368-canonical-urls#311563 "Hello,  I did something wrong on canonical urls.  Some products have &quot;wrong&quot; canonical urls: they dont have the right path, instead of that they are pointing to a wrong path category like &quot;/index.php/hikashop-menu-for-brands-listing/product/product&#95;name&quot; or &quot;/index.php/books/product/product&#95;name&quot; (the product isnt a book). Some other products have the right canonical urls, pointing to the right URL.  I searched in forum and I noticed that I should have disabled the joomla's sef plugin. Also, I had the option &quot;No, generate the URLs&quot; on &quot;Force canonical URLs on listings&quot;  I would like to set the canonical urls in every product, especially in the wrong ones.  Thank you in advance.")*

Hi,

I'm not sure what you did.
Here is the explanation with a screenshot:
[ monosnap.com/file/TYfDW7UHJIayDswe5ofepawESFZoqL](https://monosnap.com/file/TYfDW7UHJIayDswe5ofepawESFZoqL)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTgzNjgtY2Fub25pY2FsLXVybHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[Giscard](/forum/user/56241-giscard "View Giscard's Profile")**
- [![Giscard's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/56241-giscard "View Giscard's Profile") Topic Author
- [ Offline](/forum/user/56241-giscard)

Less More

- Posts: 150
- Thank you received: 11
-
-

7 years 1 month ago -  7 years 1 month ago [\#311591](#311591) by [Giscard](/forum/user/56241-giscard "View Giscard's Profile")  Replied by *[Giscard](/forum/user/56241-giscard "View Giscard's Profile")* on topic *[Canonical urls](/forum/26-product-category-display/898368-canonical-urls#311591 "Hello,  I did something wrong on canonical urls.  Some products have &quot;wrong&quot; canonical urls: they dont have the right path, instead of that they are pointing to a wrong path category like &quot;/index.php/hikashop-menu-for-brands-listing/product/product&#95;name&quot; or &quot;/index.php/books/product/product&#95;name&quot; (the product isnt a book). Some other products have the right canonical urls, pointing to the right URL.  I searched in forum and I noticed that I should have disabled the joomla's sef plugin. Also, I had the option &quot;No, generate the URLs&quot; on &quot;Force canonical URLs on listings&quot;  I would like to set the canonical urls in every product, especially in the wrong ones.  Thank you in advance.")*

Hello,

That is what I did and tried to do it again, but I dont get update on the canonical URL in categories.

Thank you in advance.

Edit 1: On mobile is working and is setting the mobile-menu on each category, but on desktop doesnt update the values.
Edit 2: I am thinking that maybe there is something wrong with my menu. You said above nicolas that I shouldnt navigate through modules, so I chaecked if there is a module in my menu. There wasnt. Then I change the mobile menu with my main menu and tried to navigate via mobile in order to see the results on canonical URL. They didnt update.

Last edit: 7 years 1 month ago by [Giscard](/forum/user/56241-giscard "View Giscard's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTgzNjgtY2Fub25pY2FsLXVybHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86322
- Thank you received: 14279
-
-

7 years 4 weeks ago [\#311594](#311594) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Canonical urls](/forum/26-product-category-display/898368-canonical-urls#311594 "Hello,  I did something wrong on canonical urls.  Some products have &quot;wrong&quot; canonical urls: they dont have the right path, instead of that they are pointing to a wrong path category like &quot;/index.php/hikashop-menu-for-brands-listing/product/product&#95;name&quot; or &quot;/index.php/books/product/product&#95;name&quot; (the product isnt a book). Some other products have the right canonical urls, pointing to the right URL.  I searched in forum and I noticed that I should have disabled the joomla's sef plugin. Also, I had the option &quot;No, generate the URLs&quot; on &quot;Force canonical URLs on listings&quot;  I would like to set the canonical urls in every product, especially in the wrong ones.  Thank you in advance.")*

Hi,

Once the canonical URL is filled in the categories, it won't be updated. It will only be set if the field is empty in the categories.
Also, then main category from your main menu items won't be filled since they are only displayed in a listing by via a menu module.
So you'll have to fill them manually.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTgzNjgtY2Fub25pY2FsLXVybHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[Giscard](/forum/user/56241-giscard "View Giscard's Profile")**
- [![Giscard's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/56241-giscard "View Giscard's Profile") Topic Author
- [ Offline](/forum/user/56241-giscard)

Less More

- Posts: 150
- Thank you received: 11
-
-

7 years 4 weeks ago [\#311636](#311636) by [Giscard](/forum/user/56241-giscard "View Giscard's Profile")  Replied by *[Giscard](/forum/user/56241-giscard "View Giscard's Profile")* on topic *[Canonical urls](/forum/26-product-category-display/898368-canonical-urls#311636 "Hello,  I did something wrong on canonical urls.  Some products have &quot;wrong&quot; canonical urls: they dont have the right path, instead of that they are pointing to a wrong path category like &quot;/index.php/hikashop-menu-for-brands-listing/product/product&#95;name&quot; or &quot;/index.php/books/product/product&#95;name&quot; (the product isnt a book). Some other products have the right canonical urls, pointing to the right URL.  I searched in forum and I noticed that I should have disabled the joomla's sef plugin. Also, I had the option &quot;No, generate the URLs&quot; on &quot;Force canonical URLs on listings&quot;  I would like to set the canonical urls in every product, especially in the wrong ones.  Thank you in advance.")*

Hello,

Updated I mean from empty string to the right path. I have cleared the canonical urls via mass actios, before navigate. Also, when I see that a category has a mobile url I delete that as well.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTgzNjgtY2Fub25pY2FsLXVybHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86322
- Thank you received: 14279
-
-

7 years 4 weeks ago [\#311666](#311666) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Canonical urls](/forum/26-product-category-display/898368-canonical-urls#311666 "Hello,  I did something wrong on canonical urls.  Some products have &quot;wrong&quot; canonical urls: they dont have the right path, instead of that they are pointing to a wrong path category like &quot;/index.php/hikashop-menu-for-brands-listing/product/product&#95;name&quot; or &quot;/index.php/books/product/product&#95;name&quot; (the product isnt a book). Some other products have the right canonical urls, pointing to the right URL.  I searched in forum and I noticed that I should have disabled the joomla's sef plugin. Also, I had the option &quot;No, generate the URLs&quot; on &quot;Force canonical URLs on listings&quot;  I would like to set the canonical urls in every product, especially in the wrong ones.  Thank you in advance.")*

Hi,

I think I know why this doesn't work for you.
You have sub menu items with the categories and in that case, the system directly use the URL of the sub menu item corresponding to the category, which skips the generation of the URL process where the canonical URL is generated if missing.
Change the code: Code:

return JRoute::_('index.php?option=com_hikashop&amp;Itemid='.$submenu-&gt;itemid);

to:
Code:

$url = JRoute::_('index.php?option=com_hikashop&amp;Itemid='.$submenu-&gt;itemid); // save the URL as canonical URL if the "force canonical URLs on listings" setting is activated and the canonical URL is not filled in $config = hikashop_config(); $force_canonical = $config-&gt;get('force_canonical_urls',1); if(isset($cid-&gt;category_canonical) &amp;&amp; empty($cid-&gt;category_canonical) &amp;&amp; $force_canonical == 2) { $newObj = new stdClass(); $newObj-&gt;category_id = $cid-&gt;category_id; $newObj-&gt;category_canonical = $url; $categoryClass = hikashop_get('class.category'); $categoryClass-&gt;save($newObj); } return $url;

in the file components/com_hikashop/views/category/view.html.php and that should help.
Let us know how it goes so that we can add that patch on our end too.

The following user(s) said Thank You: [Giscard](/forum/user/56241-giscard "View Giscard's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTgzNjgtY2Fub25pY2FsLXVybHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[Giscard](/forum/user/56241-giscard "View Giscard's Profile")**
- [![Giscard's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/56241-giscard "View Giscard's Profile") Topic Author
- [ Offline](/forum/user/56241-giscard)

Less More

- Posts: 150
- Thank you received: 11
-
-

7 years 4 weeks ago [\#311667](#311667) by [Giscard](/forum/user/56241-giscard "View Giscard's Profile")  Replied by *[Giscard](/forum/user/56241-giscard "View Giscard's Profile")* on topic *[Canonical urls](/forum/26-product-category-display/898368-canonical-urls#311667 "Hello,  I did something wrong on canonical urls.  Some products have &quot;wrong&quot; canonical urls: they dont have the right path, instead of that they are pointing to a wrong path category like &quot;/index.php/hikashop-menu-for-brands-listing/product/product&#95;name&quot; or &quot;/index.php/books/product/product&#95;name&quot; (the product isnt a book). Some other products have the right canonical urls, pointing to the right URL.  I searched in forum and I noticed that I should have disabled the joomla's sef plugin. Also, I had the option &quot;No, generate the URLs&quot; on &quot;Force canonical URLs on listings&quot;  I would like to set the canonical urls in every product, especially in the wrong ones.  Thank you in advance.")*

Hello,

Now it generates the path.
But in my case it is not the right one.
I go that: /index.php/hikashop-menu-for-module-131/category/analosima-grafeiou
When I want the path from the menu.

Thank you in advance.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTgzNjgtY2Fub25pY2FsLXVybHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86322
- Thank you received: 14279
-
-

7 years 4 weeks ago [\#311671](#311671) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Canonical urls](/forum/26-product-category-display/898368-canonical-urls#311671 "Hello,  I did something wrong on canonical urls.  Some products have &quot;wrong&quot; canonical urls: they dont have the right path, instead of that they are pointing to a wrong path category like &quot;/index.php/hikashop-menu-for-brands-listing/product/product&#95;name&quot; or &quot;/index.php/books/product/product&#95;name&quot; (the product isnt a book). Some other products have the right canonical urls, pointing to the right URL.  I searched in forum and I noticed that I should have disabled the joomla's sef plugin. Also, I had the option &quot;No, generate the URLs&quot; on &quot;Force canonical URLs on listings&quot;  I would like to set the canonical urls in every product, especially in the wrong ones.  Thank you in advance.")*

Hi,

I don't see how that could be the case since this code saves the URL from the sub menu item.
Could you please double check ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTgzNjgtY2Fub25pY2FsLXVybHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[Giscard](/forum/user/56241-giscard "View Giscard's Profile")**
- [![Giscard's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/56241-giscard "View Giscard's Profile") Topic Author
- [ Offline](/forum/user/56241-giscard)

Less More

- Posts: 150
- Thank you received: 11
-
-

7 years 4 weeks ago [\#311700](#311700) by [Giscard](/forum/user/56241-giscard "View Giscard's Profile")  Replied by *[Giscard](/forum/user/56241-giscard "View Giscard's Profile")* on topic *[Canonical urls](/forum/26-product-category-display/898368-canonical-urls#311700 "Hello,  I did something wrong on canonical urls.  Some products have &quot;wrong&quot; canonical urls: they dont have the right path, instead of that they are pointing to a wrong path category like &quot;/index.php/hikashop-menu-for-brands-listing/product/product&#95;name&quot; or &quot;/index.php/books/product/product&#95;name&quot; (the product isnt a book). Some other products have the right canonical urls, pointing to the right URL.  I searched in forum and I noticed that I should have disabled the joomla's sef plugin. Also, I had the option &quot;No, generate the URLs&quot; on &quot;Force canonical URLs on listings&quot;  I would like to set the canonical urls in every product, especially in the wrong ones.  Thank you in advance.")*

Hello,

I am sorry, I double check and everythig is fine now.
The path is the right one.

Thank you very much nicolas!

The following user(s) said Thank You: [nicolas](/forum/user/63-nicolas "View nicolas's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTgzNjgtY2Fub25pY2FsLXVybHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[Giscard](/forum/user/56241-giscard "View Giscard's Profile")**
- [![Giscard's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/56241-giscard "View Giscard's Profile") Topic Author
- [ Offline](/forum/user/56241-giscard)

Less More

- Posts: 150
- Thank you received: 11
-
-

7 years 4 weeks ago -  7 years 4 weeks ago [\#311743](#311743) by [Giscard](/forum/user/56241-giscard "View Giscard's Profile")  Replied by *[Giscard](/forum/user/56241-giscard "View Giscard's Profile")* on topic *[Canonical urls](/forum/26-product-category-display/898368-canonical-urls#311743 "Hello,  I did something wrong on canonical urls.  Some products have &quot;wrong&quot; canonical urls: they dont have the right path, instead of that they are pointing to a wrong path category like &quot;/index.php/hikashop-menu-for-brands-listing/product/product&#95;name&quot; or &quot;/index.php/books/product/product&#95;name&quot; (the product isnt a book). Some other products have the right canonical urls, pointing to the right URL.  I searched in forum and I noticed that I should have disabled the joomla's sef plugin. Also, I had the option &quot;No, generate the URLs&quot; on &quot;Force canonical URLs on listings&quot;  I would like to set the canonical urls in every product, especially in the wrong ones.  Thank you in advance.")*

Hello,

How can I manage a product's Canonical URL, which product will be set in two different categories? I added one product in a different category and it points in the path that is set in the product, of course.

Thank you in advance.

Last edit: 7 years 4 weeks ago by [Giscard](/forum/user/56241-giscard "View Giscard's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTgzNjgtY2Fub25pY2FsLXVybHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86322
- Thank you received: 14279
-
-

7 years 3 weeks ago [\#311763](#311763) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Canonical urls](/forum/26-product-category-display/898368-canonical-urls#311763 "Hello,  I did something wrong on canonical urls.  Some products have &quot;wrong&quot; canonical urls: they dont have the right path, instead of that they are pointing to a wrong path category like &quot;/index.php/hikashop-menu-for-brands-listing/product/product&#95;name&quot; or &quot;/index.php/books/product/product&#95;name&quot; (the product isnt a book). Some other products have the right canonical urls, pointing to the right URL.  I searched in forum and I noticed that I should have disabled the joomla's sef plugin. Also, I had the option &quot;No, generate the URLs&quot; on &quot;Force canonical URLs on listings&quot;  I would like to set the canonical urls in every product, especially in the wrong ones.  Thank you in advance.")*

Hi,

Canonical URLs do not change anything regarding that.
It's only if you activate the "force canonical URLs on listings" setting of the HikaShop configuration that the canonical URL of the product will be used everywhere.
If you don't want that, you should turn off that setting. That way, the URLs to access the product page will be different, but the indexed URL for search engines will still be the canonical URL (and you won't have issues with SEO).

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTgzNjgtY2Fub25pY2FsLXVybHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[Giscard](/forum/user/56241-giscard "View Giscard's Profile")**
- [![Giscard's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/56241-giscard "View Giscard's Profile") Topic Author
- [ Offline](/forum/user/56241-giscard)

Less More

- Posts: 150
- Thank you received: 11
-
-

7 years 3 weeks ago [\#311781](#311781) by [Giscard](/forum/user/56241-giscard "View Giscard's Profile")  Replied by *[Giscard](/forum/user/56241-giscard "View Giscard's Profile")* on topic *[Canonical urls](/forum/26-product-category-display/898368-canonical-urls#311781 "Hello,  I did something wrong on canonical urls.  Some products have &quot;wrong&quot; canonical urls: they dont have the right path, instead of that they are pointing to a wrong path category like &quot;/index.php/hikashop-menu-for-brands-listing/product/product&#95;name&quot; or &quot;/index.php/books/product/product&#95;name&quot; (the product isnt a book). Some other products have the right canonical urls, pointing to the right URL.  I searched in forum and I noticed that I should have disabled the joomla's sef plugin. Also, I had the option &quot;No, generate the URLs&quot; on &quot;Force canonical URLs on listings&quot;  I would like to set the canonical urls in every product, especially in the wrong ones.  Thank you in advance.")*

Hello,

I tried to turn off the option about canonical URLs, but the current products display error in the fron-end so I turn it up again.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTgzNjgtY2Fub25pY2FsLXVybHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.124 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
