Reputation: 1863
I need to ignore routes matching this schema
/{controller}/edit/undefined
{controller} - could be any controller
BTW I was wondering when to use Ignore and when IgnoreRoute.
Upvotes: 1
Views: 800
Reputation: 1038830
You could add the following at the beginning of your route definitions:
routes.IgnoreRoute("{controller}/edit/undefined");
BTW I was wondering when to use Ignore and when IgnoreRoute.
It's the same thing. IgnoreRoute
is an extension method that does the same as Ignore
.
Upvotes: 2