I have a news site with articles tagged in categories.
My Controller is called "Category" and this URL:
http://mysite.com/Category/Sport
passes Sport
to action Index
in controller Category
.
I want to allow the following URLs:
http://mysite.com/Sport/Hockey
http://mysite.com/Sport/Football
http://mysite.com/Science/Evolution
Which passes all category information to action Index
in controller Category
.
How do I create a catch-all route that handles all these and shuttles them to category?
There's a pretty good response to my question along these lines here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With