My site requires routes that look something like this:
/products/product1/subcategory
/products/product1/subcategory2
/products/product2/subcagetory
etc..
I've set up my routes to this:
routes.MapRoute("Product1", "products/product1/{action}" ....
routes.MapRoute("Product2", "products/product2/{action}" ....
I do this in order to ensure that the menu items redirect to the correct view, which works great, but our tester picked up that users can interchange the URL which returns irregular results, for example:
/products/product1/subcategory-for-product2
/products/product2/subcategory-for-product1
Is there a way of blocking this from happening?