I currently have a collection of routes like
{controller}/{action}/{from}/{to}/{some}/{other}/{things}
{controller}/{action}/{from}/{to}/{some}/{other}
{controller}/{action}/{from}/{to}
{controller}/{action}
and views with forms with get actions to retrieve the results. But the get actions go to the
default/last route with the parameters in the query strings. What's the best approach to handle redirecting to the pretty-url for the most specific route?
i.e. when the form submits goes to
myurl.com/controller/action?from=20091021&to=20091131
its redirected to
myurl.com/controller/action/from-20091021/to-20091131
Generally, I'm wondering if I'm just missing something fundamental about sensible route design, as I'm also having a little trouble with Html.RouteLink mapping to a route rather than the query string style urls.
Thanks in advance for any advice/ guidance/ useful links.