What is the correct way to setup a username in a route that then goes off to a controller ‘profile’ and an action of ‘show’. Like the way facebook does: http://www.facebook.com/username
but… if the first part of the URL is not a username do the standard route mechanism.
"/$controller/$action?/$id?"{
constraints {
// apply constraints here
}
}
Setting it up like this should work I would think. replicate/rename namedController to the controllers you actually have. A user named “namedController” in this example will never be shown, as non-dynamic token matches (the stuff between “/”) has stronger precedence.
(And is also a logical idea, imo.)