Custom Routing

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
6 years ago
Hi guys,

I know this question has been tabled before but I can't seem to find a definitive answer on how to achieve what is normally a simple things in MVC routing using Nop.

We simply want to prefix products with a category:

https://nop.local/category-name/product-name

What would be the simplest way to achieve this in Nop?

Any tips welcome :)

Thanks,

Jus
5 years ago
Anyone encountered this, I would have thought this was a common requirement?
5 years ago
check out the attribute routing, you could do it on the action level. I have tried attribute routing in nopcommerce project and it works fine

https://blogs.msdn.microsoft.com/webdev/2013/10/17/attribute-routing-in-asp-net-mvc-5/
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.