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

#   consistent product URL

##

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

Less More

- Posts: 108
- Thank you received: 6
-
-

12 years 5 months ago [\#158677](#158677) by [christofu](/forum/user/31338-christofu "View christofu's Profile")  *[consistent product URL](/forum/19-hikamarket/868731-consistent-product-url#158677 "Hi,  I have noticed that selecting a product via a module, and selecting a product through its category page yields a different URL.  I would like to have the same URL when a product is selected via any link in addition I would like the products to always be associated their parent category i.e. website/category/product/product-name (my site has a different template per category)  currently if I visit the same product from a module it will pick up the URL website/component/hikashop/product/product-name (and I would also like to remove the component/hikashop part of the URL)  I noticed you could associate a product with a vendor in 1.41, but I just wanted to find out how to always associate a product with a category (as far as its URL and therefore styling in my case is concerned)?  kind regards")* was created by *[christofu](/forum/user/31338-christofu "View christofu's Profile")*

Hi,

I have noticed that selecting a product via a module, and selecting a product through its category page yields a different URL.

I would like to have the same URL when a product is selected via any link
in addition I would like the products to always be associated their parent category i.e. website/category/product/product-name
(my site has a different template per category)

currently if I visit the same product from a module it will pick up the URL website/component/hikashop/product/product-name (and I would also like to remove the component/hikashop part of the URL)

I noticed you could associate a product with a vendor in 1.41, but I just wanted to find out how to always associate a product with a category (as far as its URL and therefore styling in my case is concerned)?

kind regards

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvODY4NzMxLWNvbnNpc3RlbnQtcHJvZHVjdC11cmw/dG1wbD1tYXJrZG93bg==) 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: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

12 years 5 months ago [\#158723](#158723) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[consistent product URL](/forum/19-hikamarket/868731-consistent-product-url#158723 "Hi,  I have noticed that selecting a product via a module, and selecting a product through its category page yields a different URL.  I would like to have the same URL when a product is selected via any link in addition I would like the products to always be associated their parent category i.e. website/category/product/product-name (my site has a different template per category)  currently if I visit the same product from a module it will pick up the URL website/component/hikashop/product/product-name (and I would also like to remove the component/hikashop part of the URL)  I noticed you could associate a product with a vendor in 1.41, but I just wanted to find out how to always associate a product with a category (as far as its URL and therefore styling in my case is concerned)?  kind regards")*

Hi,

You have to use the HikaShop option (added in 2.3.1) to always use the canonical url when creating a link to a product.
It's not related to HikaMarket, just to HikaShop.

Regards,

---

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

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

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

Less More

- Posts: 108
- Thank you received: 6
-
-

12 years 5 months ago [\#159661](#159661) by [christofu](/forum/user/31338-christofu "View christofu's Profile")  Replied by *[christofu](/forum/user/31338-christofu "View christofu's Profile")* on topic *[consistent product URL](/forum/19-hikamarket/868731-consistent-product-url#159661 "Hi,  I have noticed that selecting a product via a module, and selecting a product through its category page yields a different URL.  I would like to have the same URL when a product is selected via any link in addition I would like the products to always be associated their parent category i.e. website/category/product/product-name (my site has a different template per category)  currently if I visit the same product from a module it will pick up the URL website/component/hikashop/product/product-name (and I would also like to remove the component/hikashop part of the URL)  I noticed you could associate a product with a vendor in 1.41, but I just wanted to find out how to always associate a product with a category (as far as its URL and therefore styling in my case is concerned)?  kind regards")*

thanks,

I used a combination of that and associating the corresponding category menu to the module (in hikashop options).

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvODY4NzMxLWNvbnNpc3RlbnQtcHJvZHVjdC11cmw/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?

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

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

Time to create page: 0.085 seconds

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