This project is read-only.

Using a default action other than 'Index'?

Apr 1, 2013 at 8:08 PM
Is it possible to change the default action from 'Index'?

I see that the DefaultAction of the CodeRoutingSettings has been removed - is there another way to configure this?


Apr 1, 2013 at 8:09 PM
v1.1 has a DefaultAction attribute.
Marked as answer by maxtoroq on 10/15/2013 at 9:19 AM
Apr 7, 2013 at 12:09 PM

This solves my immediate problem.

I'd still like to see a global configuration for this so that it doesn't have to be set on each controller (also a problem when you have multiple non-'index' default actions differentiated only by its parameter signature).


Apr 7, 2013 at 4:34 PM
I plan to add a second convention, if there's no Index then look for and action with the same name as the controller. But that's for v2, since it's a breaking change. I don't see the need for a global configuration setting, what convention are you using?

Default actions cannot have required route parameters (either no parameters or all optional), so for overloaded actions use the one that satisfies that requirement.