I am looking at creating some new routes within my MVC3 application. What I want is a route that will allow me to produce:
{clientname}/{controller}/{action}/{id}
Where I am unsure is whether or not I should make use of the object defaults parameter.
You could add the following route definition:
Because
clientnameis at the beginning it is a compulsory value. It must always be specified and cannot be empty.For example if you generate an anchor:
it would produce the following output: