Should all routes in ASP.net MVC follow the philosophy of "Only slashes, without QueryString"?
I am working on Wiki software, so I have routes like
/{pageTitle} /{pageTitle/Edit /{pageTitle/History
etc .. for all actions, but what if I want to control the behavior of the Action? Sort of
/{pageTitle}?noredirect=true
good or considered bad practice? If the latter, is there a better option? Should I create a separate route
/{pageTitle}/NoRedirect
instead
I think it is clean, but then again I never wrote a complicated MVC application that I had to pass parameters to before :)
source share