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

#   A mess with category links

##

- **[Tim Moore](/forum/user/37893-tim-moore "View Tim Moore's Profile")**
- [![Tim Moore's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/37893-tim-moore "View Tim Moore's Profile") Topic Author
- [ Offline](/forum/user/37893-tim-moore)

Less More

- Posts: 29
- Thank you received: 0
-
-

11 years 2 months ago -  11 years 2 months ago [\#209765](#209765) by [Tim Moore](/forum/user/37893-tim-moore "View Tim Moore's Profile")  *[A mess with category links](/forum/25-install-update/878417-a-mess-with-category-links#209765 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5.26  Hi there!  The problem is: i have main categories and subcategories. The correct path (and canonical url) should be like this:    homenland.ru/tovary-dlya-dachi/sadovye-k...li/2-mestnye-kacheli   There is a menu link, a cannonical link and i also got this link while stepping thru the parents dirs: tovary-dlya-dachi-&gt;sadovye-kacheli-&gt;2-mestnye-kacheli  but when I list categories with all their subs (  homenland.ru/tovary-dlya-dachi ), this link turns into   homenland.ru/tovary-dlya-dachi/category/p2-mestnye-kacheli  That is we've got category string, and 2-mestnye-kacheli turn into p2-mestnye-kacheli Once again, I don't need double links and I don't need   homenland.ru/tovary-dlya-dachi/category/p2-mestnye-kacheli  instead of   homenland.ru/tovary-dlya-dachi/sadovye-k...li/2-mestnye-kacheli  Whats the heck?  Though the top level parent categories seem to have proper links  P.S. I have no idea why this topic is posted at Install and Update. Please move to appropriate category")* was created by *[Tim Moore](/forum/user/37893-tim-moore "View Tim Moore's Profile")*

-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.4.3
-- PHP version -- : 5.5.26

Hi there!

The problem is: i have main categories and subcategories. The correct path (and canonical url) should be like this:

**[ homenland.ru/tovary-dlya-dachi/sadovye-k...li/2-mestnye-kacheli](http://homenland.ru/tovary-dlya-dachi/sadovye-kacheli/2-mestnye-kacheli)**

There is *a menu link*, *a cannonical link* and i also got this link while stepping thru the parents dirs: *tovary-dlya-dachi-&gt;sadovye-kacheli-&gt;2-mestnye-kacheli*

but when I list categories with all their subs ([ homenland.ru/tovary-dlya-dachi](http://homenland.ru/tovary-dlya-dachi)), this link turns into [ homenland.ru/tovary-dlya-dachi/category/p2-mestnye-kacheli](http://homenland.ru/tovary-dlya-dachi/category/p2-mestnye-kacheli)

That is we've got **category** string, and **2-mestnye-kacheli** turn into **p2**-mestnye-kacheli
Once again, I don't need double links and I don't need [ homenland.ru/tovary-dlya-dachi/category/p2-mestnye-kacheli](http://homenland.ru/tovary-dlya-dachi/category/p2-mestnye-kacheli) instead of [ homenland.ru/tovary-dlya-dachi/sadovye-k...li/2-mestnye-kacheli](http://homenland.ru/tovary-dlya-dachi/sadovye-kacheli/2-mestnye-kacheli)
Whats the heck?

Though the top level parent categories seem to have proper links

P.S. I have no idea why this topic is posted at Install and Update. Please move to appropriate category

Last edit: 11 years 2 months ago by [Tim Moore](/forum/user/37893-tim-moore "View Tim Moore's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg3ODQxNy1hLW1lc3Mtd2l0aC1jYXRlZ29yeS1saW5rcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

11 years 2 months ago [\#209779](#209779) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[A mess with category links](/forum/25-install-update/878417-a-mess-with-category-links#209779 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5.26  Hi there!  The problem is: i have main categories and subcategories. The correct path (and canonical url) should be like this:    homenland.ru/tovary-dlya-dachi/sadovye-k...li/2-mestnye-kacheli   There is a menu link, a cannonical link and i also got this link while stepping thru the parents dirs: tovary-dlya-dachi-&gt;sadovye-kacheli-&gt;2-mestnye-kacheli  but when I list categories with all their subs (  homenland.ru/tovary-dlya-dachi ), this link turns into   homenland.ru/tovary-dlya-dachi/category/p2-mestnye-kacheli  That is we've got category string, and 2-mestnye-kacheli turn into p2-mestnye-kacheli Once again, I don't need double links and I don't need   homenland.ru/tovary-dlya-dachi/category/p2-mestnye-kacheli  instead of   homenland.ru/tovary-dlya-dachi/sadovye-k...li/2-mestnye-kacheli  Whats the heck?  Though the top level parent categories seem to have proper links  P.S. I have no idea why this topic is posted at Install and Update. Please move to appropriate category")*

Hi,

Enter the URL that you want among the ones generated in the "canonical URL" field of your category/product and the system will always use it as long as you didn't turn off the "force canonical URLs on listings" setting of the HikaShop configuration.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg3ODQxNy1hLW1lc3Mtd2l0aC1jYXRlZ29yeS1saW5rcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Tim Moore](/forum/user/37893-tim-moore "View Tim Moore's Profile")**
- [![Tim Moore's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/37893-tim-moore "View Tim Moore's Profile") Topic Author
- [ Offline](/forum/user/37893-tim-moore)

Less More

- Posts: 29
- Thank you received: 0
-
-

11 years 2 months ago -  11 years 2 months ago [\#209979](#209979) by [Tim Moore](/forum/user/37893-tim-moore "View Tim Moore's Profile")  Replied by *[Tim Moore](/forum/user/37893-tim-moore "View Tim Moore's Profile")* on topic *[A mess with category links](/forum/25-install-update/878417-a-mess-with-category-links#209979 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5.26  Hi there!  The problem is: i have main categories and subcategories. The correct path (and canonical url) should be like this:    homenland.ru/tovary-dlya-dachi/sadovye-k...li/2-mestnye-kacheli   There is a menu link, a cannonical link and i also got this link while stepping thru the parents dirs: tovary-dlya-dachi-&gt;sadovye-kacheli-&gt;2-mestnye-kacheli  but when I list categories with all their subs (  homenland.ru/tovary-dlya-dachi ), this link turns into   homenland.ru/tovary-dlya-dachi/category/p2-mestnye-kacheli  That is we've got category string, and 2-mestnye-kacheli turn into p2-mestnye-kacheli Once again, I don't need double links and I don't need   homenland.ru/tovary-dlya-dachi/category/p2-mestnye-kacheli  instead of   homenland.ru/tovary-dlya-dachi/sadovye-k...li/2-mestnye-kacheli  Whats the heck?  Though the top level parent categories seem to have proper links  P.S. I have no idea why this topic is posted at Install and Update. Please move to appropriate category")*

Unfortunately, whichever option I choose for "force canonical URLs on listings" nothing changes at all at behaviour - the link are still incorrect.
you can check here, any link for subcategory
[ homenland.ru/tovary-dlya-dachi](http://homenland.ru/tovary-dlya-dachi)
and compare it to appropriate links in top megamenu, i.e. "2-местные качели"

- [ ![Screen&#95;Shot&#95;2015-07-29&#95;at&#95;17&#95;09&#95;58.png](/forum/attachment/25734) ](/forum/attachment/25734 "...t&#95;17&#95;09&#95;58.png") [ ](/forum/attachment/25734?download=1 "...t&#95;17&#95;09&#95;58.png")

Last edit: 11 years 2 months ago by [Tim Moore](/forum/user/37893-tim-moore "View Tim Moore's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg3ODQxNy1hLW1lc3Mtd2l0aC1jYXRlZ29yeS1saW5rcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

11 years 2 months ago [\#209980](#209980) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[A mess with category links](/forum/25-install-update/878417-a-mess-with-category-links#209980 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5.26  Hi there!  The problem is: i have main categories and subcategories. The correct path (and canonical url) should be like this:    homenland.ru/tovary-dlya-dachi/sadovye-k...li/2-mestnye-kacheli   There is a menu link, a cannonical link and i also got this link while stepping thru the parents dirs: tovary-dlya-dachi-&gt;sadovye-kacheli-&gt;2-mestnye-kacheli  but when I list categories with all their subs (  homenland.ru/tovary-dlya-dachi ), this link turns into   homenland.ru/tovary-dlya-dachi/category/p2-mestnye-kacheli  That is we've got category string, and 2-mestnye-kacheli turn into p2-mestnye-kacheli Once again, I don't need double links and I don't need   homenland.ru/tovary-dlya-dachi/category/p2-mestnye-kacheli  instead of   homenland.ru/tovary-dlya-dachi/sadovye-k...li/2-mestnye-kacheli  Whats the heck?  Though the top level parent categories seem to have proper links  P.S. I have no idea why this topic is posted at Install and Update. Please move to appropriate category")*

You should keep the default value "Use canonical URL if specified".

Did you enter the URL that you want for your product in the "canonical URL" field ?
As I said, this is also necessary. Not just changing the "force canonical URLs on listings"setting.

If you don't see any change with the canonical URL specified and that setting set to "Use canonical URL if specified", then it means that you must have some caching on your website, preventing you from seeing the change (so try to clear the cache of Joomla), or that you have some view overrides of the listing view files of HikaShop in your template which don't support canonical URLs.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg3ODQxNy1hLW1lc3Mtd2l0aC1jYXRlZ29yeS1saW5rcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Tim Moore](/forum/user/37893-tim-moore "View Tim Moore's Profile")**
- [![Tim Moore's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/37893-tim-moore "View Tim Moore's Profile") Topic Author
- [ Offline](/forum/user/37893-tim-moore)

Less More

- Posts: 29
- Thank you received: 0
-
-

11 years 2 months ago [\#210141](#210141) by [Tim Moore](/forum/user/37893-tim-moore "View Tim Moore's Profile")  Replied by *[Tim Moore](/forum/user/37893-tim-moore "View Tim Moore's Profile")* on topic *[A mess with category links](/forum/25-install-update/878417-a-mess-with-category-links#210141 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5.26  Hi there!  The problem is: i have main categories and subcategories. The correct path (and canonical url) should be like this:    homenland.ru/tovary-dlya-dachi/sadovye-k...li/2-mestnye-kacheli   There is a menu link, a cannonical link and i also got this link while stepping thru the parents dirs: tovary-dlya-dachi-&gt;sadovye-kacheli-&gt;2-mestnye-kacheli  but when I list categories with all their subs (  homenland.ru/tovary-dlya-dachi ), this link turns into   homenland.ru/tovary-dlya-dachi/category/p2-mestnye-kacheli  That is we've got category string, and 2-mestnye-kacheli turn into p2-mestnye-kacheli Once again, I don't need double links and I don't need   homenland.ru/tovary-dlya-dachi/category/p2-mestnye-kacheli  instead of   homenland.ru/tovary-dlya-dachi/sadovye-k...li/2-mestnye-kacheli  Whats the heck?  Though the top level parent categories seem to have proper links  P.S. I have no idea why this topic is posted at Install and Update. Please move to appropriate category")*

I double checked all of the things you've mentioned above. Besides I've disabled all of the overrides. But none of these solved the issue.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg3ODQxNy1hLW1lc3Mtd2l0aC1jYXRlZ29yeS1saW5rcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

11 years 2 months ago [\#210200](#210200) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[A mess with category links](/forum/25-install-update/878417-a-mess-with-category-links#210200 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5.26  Hi there!  The problem is: i have main categories and subcategories. The correct path (and canonical url) should be like this:    homenland.ru/tovary-dlya-dachi/sadovye-k...li/2-mestnye-kacheli   There is a menu link, a cannonical link and i also got this link while stepping thru the parents dirs: tovary-dlya-dachi-&gt;sadovye-kacheli-&gt;2-mestnye-kacheli  but when I list categories with all their subs (  homenland.ru/tovary-dlya-dachi ), this link turns into   homenland.ru/tovary-dlya-dachi/category/p2-mestnye-kacheli  That is we've got category string, and 2-mestnye-kacheli turn into p2-mestnye-kacheli Once again, I don't need double links and I don't need   homenland.ru/tovary-dlya-dachi/category/p2-mestnye-kacheli  instead of   homenland.ru/tovary-dlya-dachi/sadovye-k...li/2-mestnye-kacheli  Whats the heck?  Though the top level parent categories seem to have proper links  P.S. I have no idea why this topic is posted at Install and Update. Please move to appropriate category")*

Hi,

> Did you enter the URL that you want for your product in the "canonical URL" field ?

Please provide us details about your configuration and the issue so we will be able to understand it clearly.

For example, the screenshot you gave ; I can find the first element that you pointed but I can't find the second one.. So it does not help to understand what you're talking about and for sure, the nature of the issue.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg3ODQxNy1hLW1lc3Mtd2l0aC1jYXRlZ29yeS1saW5rcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Tim Moore](/forum/user/37893-tim-moore "View Tim Moore's Profile")**
- [![Tim Moore's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/37893-tim-moore "View Tim Moore's Profile") Topic Author
- [ Offline](/forum/user/37893-tim-moore)

Less More

- Posts: 29
- Thank you received: 0
-
-

11 years 2 months ago -  11 years 2 months ago [\#210221](#210221) by [Tim Moore](/forum/user/37893-tim-moore "View Tim Moore's Profile")  Replied by *[Tim Moore](/forum/user/37893-tim-moore "View Tim Moore's Profile")* on topic *[A mess with category links](/forum/25-install-update/878417-a-mess-with-category-links#210221 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5.26  Hi there!  The problem is: i have main categories and subcategories. The correct path (and canonical url) should be like this:    homenland.ru/tovary-dlya-dachi/sadovye-k...li/2-mestnye-kacheli   There is a menu link, a cannonical link and i also got this link while stepping thru the parents dirs: tovary-dlya-dachi-&gt;sadovye-kacheli-&gt;2-mestnye-kacheli  but when I list categories with all their subs (  homenland.ru/tovary-dlya-dachi ), this link turns into   homenland.ru/tovary-dlya-dachi/category/p2-mestnye-kacheli  That is we've got category string, and 2-mestnye-kacheli turn into p2-mestnye-kacheli Once again, I don't need double links and I don't need   homenland.ru/tovary-dlya-dachi/category/p2-mestnye-kacheli  instead of   homenland.ru/tovary-dlya-dachi/sadovye-k...li/2-mestnye-kacheli  Whats the heck?  Though the top level parent categories seem to have proper links  P.S. I have no idea why this topic is posted at Install and Update. Please move to appropriate category")*

Yes, there are canonical URLs everywhere. That is the point!

please enter here [ homenland.ru/tovary-dlya-dachi](http://homenland.ru/tovary-dlya-dachi)

See my screenshot above. You will see that links in top menu are different from links of sub-categories below, under categories' thumbnails, which are completely faulty. That is instead of [ homenland.ru/tovary-dlya-dachi/sadovye-k...li/2-mestnye-kacheli](http://homenland.ru/tovary-dlya-dachi/sadovye-kacheli/2-mestnye-kacheli)
i have [ homenland.ru/tovary-dlya-dachi/category/p2-mestnye-kacheli](http://homenland.ru/tovary-dlya-dachi/category/p2-mestnye-kacheli) - which is not what I need. More over, those later links lead to nowhere. And there is **category** inside url, as well as alias is also with mistake

Maybe it would be better to grant you access?

Last edit: 11 years 2 months ago by [Tim Moore](/forum/user/37893-tim-moore "View Tim Moore's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg3ODQxNy1hLW1lc3Mtd2l0aC1jYXRlZ29yeS1saW5rcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

11 years 2 months ago [\#210230](#210230) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[A mess with category links](/forum/25-install-update/878417-a-mess-with-category-links#210230 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5.26  Hi there!  The problem is: i have main categories and subcategories. The correct path (and canonical url) should be like this:    homenland.ru/tovary-dlya-dachi/sadovye-k...li/2-mestnye-kacheli   There is a menu link, a cannonical link and i also got this link while stepping thru the parents dirs: tovary-dlya-dachi-&gt;sadovye-kacheli-&gt;2-mestnye-kacheli  but when I list categories with all their subs (  homenland.ru/tovary-dlya-dachi ), this link turns into   homenland.ru/tovary-dlya-dachi/category/p2-mestnye-kacheli  That is we've got category string, and 2-mestnye-kacheli turn into p2-mestnye-kacheli Once again, I don't need double links and I don't need   homenland.ru/tovary-dlya-dachi/category/p2-mestnye-kacheli  instead of   homenland.ru/tovary-dlya-dachi/sadovye-k...li/2-mestnye-kacheli  Whats the heck?  Though the top level parent categories seem to have proper links  P.S. I have no idea why this topic is posted at Install and Update. Please move to appropriate category")*

Hi,

Is the URL in the "canonical URL" field of your product/category the one used ?
If so, and if the URL is wrong, it means that you have the wrong one in the "canonical URL" field of your product/category.
As I said previously, you need to enter the URL that you want for your product/category in the "canonical URL" field of the product/category and that must be one of the valid URLs of the product/category.

If not, then the issue is with the listing which should use it instead of using another one and that can usually be explained because of caching or view overrides as I previously said. If you don't have a canonical URL in the product/category, and that the URL of the product/category on the listing doesn't work, then I don't see any other possibility than a caching or view override issue.

We can have a look to the backend, but the solution will be among what I said already. I don't see any other reason for what you describe to happen.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg3ODQxNy1hLW1lc3Mtd2l0aC1jYXRlZ29yeS1saW5rcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Tim Moore](/forum/user/37893-tim-moore "View Tim Moore's Profile")**
- [![Tim Moore's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/37893-tim-moore "View Tim Moore's Profile") Topic Author
- [ Offline](/forum/user/37893-tim-moore)

Less More

- Posts: 29
- Thank you received: 0
-
-

11 years 1 month ago -  11 years 1 month ago [\#213831](#213831) by [Tim Moore](/forum/user/37893-tim-moore "View Tim Moore's Profile")  Replied by *[Tim Moore](/forum/user/37893-tim-moore "View Tim Moore's Profile")* on topic *[A mess with category links](/forum/25-install-update/878417-a-mess-with-category-links#213831 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5.26  Hi there!  The problem is: i have main categories and subcategories. The correct path (and canonical url) should be like this:    homenland.ru/tovary-dlya-dachi/sadovye-k...li/2-mestnye-kacheli   There is a menu link, a cannonical link and i also got this link while stepping thru the parents dirs: tovary-dlya-dachi-&gt;sadovye-kacheli-&gt;2-mestnye-kacheli  but when I list categories with all their subs (  homenland.ru/tovary-dlya-dachi ), this link turns into   homenland.ru/tovary-dlya-dachi/category/p2-mestnye-kacheli  That is we've got category string, and 2-mestnye-kacheli turn into p2-mestnye-kacheli Once again, I don't need double links and I don't need   homenland.ru/tovary-dlya-dachi/category/p2-mestnye-kacheli  instead of   homenland.ru/tovary-dlya-dachi/sadovye-k...li/2-mestnye-kacheli  Whats the heck?  Though the top level parent categories seem to have proper links  P.S. I have no idea why this topic is posted at Install and Update. Please move to appropriate category")*

> We can have a look to the backend, but the solution will be among what I said already. I don't see any other reason for what you describe to happen.

Can you please contact me to provide you with access?

Last edit: 11 years 1 month ago by [Tim Moore](/forum/user/37893-tim-moore "View Tim Moore's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg3ODQxNy1hLW1lc3Mtd2l0aC1jYXRlZ29yeS1saW5rcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

11 years 1 month ago [\#213845](#213845) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[A mess with category links](/forum/25-install-update/878417-a-mess-with-category-links#213845 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5.26  Hi there!  The problem is: i have main categories and subcategories. The correct path (and canonical url) should be like this:    homenland.ru/tovary-dlya-dachi/sadovye-k...li/2-mestnye-kacheli   There is a menu link, a cannonical link and i also got this link while stepping thru the parents dirs: tovary-dlya-dachi-&gt;sadovye-kacheli-&gt;2-mestnye-kacheli  but when I list categories with all their subs (  homenland.ru/tovary-dlya-dachi ), this link turns into   homenland.ru/tovary-dlya-dachi/category/p2-mestnye-kacheli  That is we've got category string, and 2-mestnye-kacheli turn into p2-mestnye-kacheli Once again, I don't need double links and I don't need   homenland.ru/tovary-dlya-dachi/category/p2-mestnye-kacheli  instead of   homenland.ru/tovary-dlya-dachi/sadovye-k...li/2-mestnye-kacheli  Whats the heck?  Though the top level parent categories seem to have proper links  P.S. I have no idea why this topic is posted at Install and Update. Please move to appropriate category")*

Hi,

Please use the "contact us" form
[ www.hikashop.com/support/contact-us.html](http://www.hikashop.com/support/contact-us.html)

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg3ODQxNy1hLW1lc3Mtd2l0aC1jYXRlZ29yeS1saW5rcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

11 years 1 month ago [\#214032](#214032) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[A mess with category links](/forum/25-install-update/878417-a-mess-with-category-links#214032 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5.26  Hi there!  The problem is: i have main categories and subcategories. The correct path (and canonical url) should be like this:    homenland.ru/tovary-dlya-dachi/sadovye-k...li/2-mestnye-kacheli   There is a menu link, a cannonical link and i also got this link while stepping thru the parents dirs: tovary-dlya-dachi-&gt;sadovye-kacheli-&gt;2-mestnye-kacheli  but when I list categories with all their subs (  homenland.ru/tovary-dlya-dachi ), this link turns into   homenland.ru/tovary-dlya-dachi/category/p2-mestnye-kacheli  That is we've got category string, and 2-mestnye-kacheli turn into p2-mestnye-kacheli Once again, I don't need double links and I don't need   homenland.ru/tovary-dlya-dachi/category/p2-mestnye-kacheli  instead of   homenland.ru/tovary-dlya-dachi/sadovye-k...li/2-mestnye-kacheli  Whats the heck?  Though the top level parent categories seem to have proper links  P.S. I have no idea why this topic is posted at Install and Update. Please move to appropriate category")*

Hi,

Thank you for the access. I see what was the problem.
It was only with the sub categories displayed below the categories on the categories listing.
That's because we forgot to change the link generated there to the new system, supporting canonical URLs.
I've change the line:
$link = hikashop_completeLink('category&amp;task=listing&amp;cid='.$child-&gt;category_id.'&amp;name='.$child-&gt;alias.$this-&gt;menu_id);
to:
$link = $this-&gt;getLink($child);
in the file "listing_div" of the view "category" via the menu Display&gt;Views so that it uses the new system and it seems to work fine on your website.
We'll add that change on our end too for the next version of HikaShop.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg3ODQxNy1hLW1lc3Mtd2l0aC1jYXRlZ29yeS1saW5rcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Tim Moore](/forum/user/37893-tim-moore "View Tim Moore's Profile")**
- [![Tim Moore's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/37893-tim-moore "View Tim Moore's Profile") Topic Author
- [ Offline](/forum/user/37893-tim-moore)

Less More

- Posts: 29
- Thank you received: 0
-
-

11 years 1 month ago [\#214036](#214036) by [Tim Moore](/forum/user/37893-tim-moore "View Tim Moore's Profile")  Replied by *[Tim Moore](/forum/user/37893-tim-moore "View Tim Moore's Profile")* on topic *[A mess with category links](/forum/25-install-update/878417-a-mess-with-category-links#214036 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5.26  Hi there!  The problem is: i have main categories and subcategories. The correct path (and canonical url) should be like this:    homenland.ru/tovary-dlya-dachi/sadovye-k...li/2-mestnye-kacheli   There is a menu link, a cannonical link and i also got this link while stepping thru the parents dirs: tovary-dlya-dachi-&gt;sadovye-kacheli-&gt;2-mestnye-kacheli  but when I list categories with all their subs (  homenland.ru/tovary-dlya-dachi ), this link turns into   homenland.ru/tovary-dlya-dachi/category/p2-mestnye-kacheli  That is we've got category string, and 2-mestnye-kacheli turn into p2-mestnye-kacheli Once again, I don't need double links and I don't need   homenland.ru/tovary-dlya-dachi/category/p2-mestnye-kacheli  instead of   homenland.ru/tovary-dlya-dachi/sadovye-k...li/2-mestnye-kacheli  Whats the heck?  Though the top level parent categories seem to have proper links  P.S. I have no idea why this topic is posted at Install and Update. Please move to appropriate category")*

Thank you! Hope this will help someone else

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg3ODQxNy1hLW1lc3Mtd2l0aC1jYXRlZ29yeS1saW5rcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) 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.306 seconds

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

[](#top)
