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

#   URL shows unwanted category name

##

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

Less More

- Posts: 35
- Thank you received: 3
-
- [](https://shop.smartgart.com)
-

10 years 1 week ago -  10 years 1 week ago [\#255357](#255357) by [hactic](/forum/user/32281-hactic "View hactic's Profile")  *[URL shows unwanted category name](/forum/26-product-category-display/887511-url-shows-unwanted-category-name#255357 "-- url of the page with the problem -- :   shop.smartgart.com/de/rauchwarnmelder/pr...schalter-z-wave.html  -- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.4 -- PHP version -- : 5.5.28 -- Browser(s) name and version -- : Chrome current -- Error-message(debug-mod must be tuned on) -- : No error messae.  Hi all,  the URL of most products shows an unwanted former category name, e. g. for https://.../de/rauchwarnmelder/product/3892-....html, I want to get rid of the &quot;rauchwarnmelder/&quot; (smoke sensor) part. Alternatively, I want it replaced with a matching category (as it is not a smoke sensor).  I do have SEO Settings in Joomla enabled. I now see that it might have to do with hidden menus.  best regards - Klaus")* was created by *[hactic](/forum/user/32281-hactic "View hactic's Profile")*

-- url of the page with the problem -- : [ shop.smartgart.com/de/rauchwarnmelder/pr...schalter-z-wave.html](https://shop.smartgart.com/de/rauchwarnmelder/product/3892-z-wave-me-zme-wallc-s-funkwandschalter-z-wave.html)
-- HikaShop version -- : 2.6.4
-- Joomla version -- : 3.6.4
-- PHP version -- : 5.5.28
-- Browser(s) name and version -- : Chrome current
-- Error-message(debug-mod must be tuned on) -- : No error messae.

Hi all,

the URL of most products shows an unwanted former category name, e. g. for https://.../de/rauchwarnmelder/product/3892-....html, I want to get rid of the "rauchwarnmelder/" (smoke sensor) part. Alternatively, I want it replaced with a matching category (as it is not a smoke sensor).

I do have SEO Settings in Joomla enabled.
I now see that it might have to do with hidden menus.

best regards - Klaus

Last edit: 10 years 1 week ago by [hactic](/forum/user/32281-hactic "View hactic's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODc1MTEtdXJsLXNob3dzLXVud2FudGVkLWNhdGVnb3J5LW5hbWU/dG1wbD1tYXJrZG93bg==) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

10 years 1 week ago [\#255368](#255368) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[URL shows unwanted category name](/forum/26-product-category-display/887511-url-shows-unwanted-category-name#255368 "-- url of the page with the problem -- :   shop.smartgart.com/de/rauchwarnmelder/pr...schalter-z-wave.html  -- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.4 -- PHP version -- : 5.5.28 -- Browser(s) name and version -- : Chrome current -- Error-message(debug-mod must be tuned on) -- : No error messae.  Hi all,  the URL of most products shows an unwanted former category name, e. g. for https://.../de/rauchwarnmelder/product/3892-....html, I want to get rid of the &quot;rauchwarnmelder/&quot; (smoke sensor) part. Alternatively, I want it replaced with a matching category (as it is not a smoke sensor).  I do have SEO Settings in Joomla enabled. I now see that it might have to do with hidden menus.  best regards - Klaus")*

Hi,

The part "rauchwarnmelder" here is the alias of your menu item. You can replace it with something else provided that you have another menu item of the type HikaShop products listing or HikaShop categories listing with what you want as alias of that menu item.

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

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

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

Less More

- Posts: 35
- Thank you received: 3
-
- [](https://shop.smartgart.com)
-

9 years 4 months ago [\#273213](#273213) by [hactic](/forum/user/32281-hactic "View hactic's Profile")  Replied by *[hactic](/forum/user/32281-hactic "View hactic's Profile")* on topic *[URL shows unwanted category name](/forum/26-product-category-display/887511-url-shows-unwanted-category-name#273213 "-- url of the page with the problem -- :   shop.smartgart.com/de/rauchwarnmelder/pr...schalter-z-wave.html  -- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.4 -- PHP version -- : 5.5.28 -- Browser(s) name and version -- : Chrome current -- Error-message(debug-mod must be tuned on) -- : No error messae.  Hi all,  the URL of most products shows an unwanted former category name, e. g. for https://.../de/rauchwarnmelder/product/3892-....html, I want to get rid of the &quot;rauchwarnmelder/&quot; (smoke sensor) part. Alternatively, I want it replaced with a matching category (as it is not a smoke sensor).  I do have SEO Settings in Joomla enabled. I now see that it might have to do with hidden menus.  best regards - Klaus")*

Thanks, that helped. I have found and deleted the respective misbehaving menu.

For a larger problem with YYYY-MM-DD-HH-MM type URLs, I went into phpmyadmin and table joomla_menu, columns alias and link, and bulk edited all those entries. They get generated as a last resort for an otherwise empty alias when UTF-8 titles are used on menus and saved (and I was too lazy to explicitly set them at the time). As the web server supports UTF-8 (including Czech + Russian Cyrillic, Arabic, Chinese) in the URL paths, I more or less simply copied the title column through.

Waiting now for Google to rank the site a bit better ... ![:)](/media/kunena/emoticons/3.png ":)")

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

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

Less More

- Posts: 35
- Thank you received: 3
-
- [](https://shop.smartgart.com)
-

9 years 4 months ago [\#273676](#273676) by [hactic](/forum/user/32281-hactic "View hactic's Profile")  Replied by *[hactic](/forum/user/32281-hactic "View hactic's Profile")* on topic *[URL shows wrong category name](/forum/26-product-category-display/887511-url-shows-unwanted-category-name#273676 "-- url of the page with the problem -- :   shop.smartgart.com/de/rauchwarnmelder/pr...schalter-z-wave.html  -- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.4 -- PHP version -- : 5.5.28 -- Browser(s) name and version -- : Chrome current -- Error-message(debug-mod must be tuned on) -- : No error messae.  Hi all,  the URL of most products shows an unwanted former category name, e. g. for https://.../de/rauchwarnmelder/product/3892-....html, I want to get rid of the &quot;rauchwarnmelder/&quot; (smoke sensor) part. Alternatively, I want it replaced with a matching category (as it is not a smoke sensor).  I do have SEO Settings in Joomla enabled. I now see that it might have to do with hidden menus.  best regards - Klaus")*

A variation of the unwanted category name problem:

Starting on shop.smartgart.com/de (German version), I search for "mb_90014".
The result page then is .../de/taktik/product/124739-makeblock-mb_90014-makeblock-xy-plotter-robot-kit-v2-0, i. e. category "taktik".

Likewise, when starting on shop.smartgart.com/en (English version), I again search for "mb_90014".
The result page then is .../en/mechatronics/product/124739-makeblock-mb_90014-makeblock-xy-plotter-robot-kit-v2-0, i. e. category "mechatronics".

The real category however is "Technical_toys" &gt; "STEM_Kits", "Maker_Kits".

That might be related to changes I made - namely i18n the category names and drilling up code.
But if someone sees an easy cure, then please advise.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODc1MTEtdXJsLXNob3dzLXVud2FudGVkLWNhdGVnb3J5LW5hbWU/dG1wbD1tYXJrZG93bg==) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

9 years 4 months ago [\#273680](#273680) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[URL shows wrong category name](/forum/26-product-category-display/887511-url-shows-unwanted-category-name#273680 "-- url of the page with the problem -- :   shop.smartgart.com/de/rauchwarnmelder/pr...schalter-z-wave.html  -- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.4 -- PHP version -- : 5.5.28 -- Browser(s) name and version -- : Chrome current -- Error-message(debug-mod must be tuned on) -- : No error messae.  Hi all,  the URL of most products shows an unwanted former category name, e. g. for https://.../de/rauchwarnmelder/product/3892-....html, I want to get rid of the &quot;rauchwarnmelder/&quot; (smoke sensor) part. Alternatively, I want it replaced with a matching category (as it is not a smoke sensor).  I do have SEO Settings in Joomla enabled. I now see that it might have to do with hidden menus.  best regards - Klaus")*

Hi,

That's actually normal.
When you're on the search page and HikaShop has to generate the links to the products, the current menu item is a menu item of the search component of Joomla.
So the first part of the current URL is not usable by HikaShop. So it picks a menu item of the type HikaShop categories/products listing randomly and use its alias for all the search results.
Having it dynamically look for the menu items of the categories of each product would require quite a lot of heavy MySQL queries and it wouldn't be simple so we chose to not do that. Especially since it could still be not what you want as you can have several categories for the same product, several menu items allowing you to access a category, etc.

Instead, there is a simpler method to solve that issue, which will also help your SEO.
Enter the URL you want for each product in the "canonical URL" field of the product (and also enter the canonical URL for each translation of the product if your website is multilingual) and then activate the "force canonical URLs on listings" setting of the HikaShop configuration.
That way, all the listings and the search system will automatically use the canonical URL of the product instead of trying to generate the links for you.

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

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

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

Less More

- Posts: 35
- Thank you received: 3
-
- [](https://shop.smartgart.com)
-

9 years 4 months ago -  9 years 4 months ago [\#273877](#273877) by [hactic](/forum/user/32281-hactic "View hactic's Profile")  Replied by *[hactic](/forum/user/32281-hactic "View hactic's Profile")* on topic *[URL shows wrong category name](/forum/26-product-category-display/887511-url-shows-unwanted-category-name#273877 "-- url of the page with the problem -- :   shop.smartgart.com/de/rauchwarnmelder/pr...schalter-z-wave.html  -- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.4 -- PHP version -- : 5.5.28 -- Browser(s) name and version -- : Chrome current -- Error-message(debug-mod must be tuned on) -- : No error messae.  Hi all,  the URL of most products shows an unwanted former category name, e. g. for https://.../de/rauchwarnmelder/product/3892-....html, I want to get rid of the &quot;rauchwarnmelder/&quot; (smoke sensor) part. Alternatively, I want it replaced with a matching category (as it is not a smoke sensor).  I do have SEO Settings in Joomla enabled. I now see that it might have to do with hidden menus.  best regards - Klaus")*

Thank you. - If possible, please point out where that random pick of the category name happens in the code;
I would then simply remove it for my installation.

For now, I want to stick with my own i18n but may try Falang/Joomfish later.

Last edit: 9 years 4 months ago by [hactic](/forum/user/32281-hactic "View hactic's Profile").

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

- **[Mihoper](/forum/user/45729-mihoper "View Mihoper's Profile")**
- [![Mihoper's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/45729-mihoper "View Mihoper's Profile")
- [ Offline](/forum/user/45729-mihoper)

Less More

- Posts: 1
- Thank you received: 0
-
-

9 years 4 months ago [\#273879](#273879) by [Mihoper](/forum/user/45729-mihoper "View Mihoper's Profile")  Replied by *[Mihoper](/forum/user/45729-mihoper "View Mihoper's Profile")* on topic *[URL shows unwanted category name](/forum/26-product-category-display/887511-url-shows-unwanted-category-name#273879 "-- url of the page with the problem -- :   shop.smartgart.com/de/rauchwarnmelder/pr...schalter-z-wave.html  -- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.4 -- PHP version -- : 5.5.28 -- Browser(s) name and version -- : Chrome current -- Error-message(debug-mod must be tuned on) -- : No error messae.  Hi all,  the URL of most products shows an unwanted former category name, e. g. for https://.../de/rauchwarnmelder/product/3892-....html, I want to get rid of the &quot;rauchwarnmelder/&quot; (smoke sensor) part. Alternatively, I want it replaced with a matching category (as it is not a smoke sensor).  I do have SEO Settings in Joomla enabled. I now see that it might have to do with hidden menus.  best regards - Klaus")*

I also like that there is such a problem. Tell me, can this be due to the fact that I used to use a [ proxy](http://advanced.name) server? You know, logically this should not affect performance. But, because anything can happen.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODc1MTEtdXJsLXNob3dzLXVud2FudGVkLWNhdGVnb3J5LW5hbWU/dG1wbD1tYXJrZG93bg==) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

9 years 4 months ago [\#273902](#273902) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[URL shows unwanted category name](/forum/26-product-category-display/887511-url-shows-unwanted-category-name#273902 "-- url of the page with the problem -- :   shop.smartgart.com/de/rauchwarnmelder/pr...schalter-z-wave.html  -- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.4 -- PHP version -- : 5.5.28 -- Browser(s) name and version -- : Chrome current -- Error-message(debug-mod must be tuned on) -- : No error messae.  Hi all,  the URL of most products shows an unwanted former category name, e. g. for https://.../de/rauchwarnmelder/product/3892-....html, I want to get rid of the &quot;rauchwarnmelder/&quot; (smoke sensor) part. Alternatively, I want it replaced with a matching category (as it is not a smoke sensor).  I do have SEO Settings in Joomla enabled. I now see that it might have to do with hidden menus.  best regards - Klaus")*

Hi,

@hactic : there is no random category name pick. As I said there is a random pick of the alias of the menu item. That is done in the function hikashop_contentLink of the file administrator/components/com_hikashop/helpers/helper.php

@Mihoper : no, it's not linked to a proxy server.

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODc1MTEtdXJsLXNob3dzLXVud2FudGVkLWNhdGVnb3J5LW5hbWU/dG1wbD1tYXJrZG93bg==) 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.065 seconds

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