Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Contributor
4392 Points
883 Posts
ASPInsiders
MVP
Dec 21, 2007 09:05 PM|LINK
Hi,
Steps to reproduce:
The first route in Global.asax.cs should look like this...
RouteTable.Routes.Add( new Route { Url = "[controller]/[action]/[id]", Defaults = new { action = "Index", id = (string)null, page = 1 }, RouteHandler = typeof( MvcRouteHandler ) } );
Simply adding page = 1 (or anything which isn't matched in the Url) breaks all the links which match this route.
MVC Routes bug
tgmdbm
Contributor
4392 Points
883 Posts
ASPInsiders
MVP
Extra defaults bug
Dec 21, 2007 09:05 PM|LINK
Hi,
Steps to reproduce:
The first route in Global.asax.cs should look like this...
RouteTable.Routes.Add( new Route
{
Url = "[controller]/[action]/[id]",
Defaults = new { action = "Index", id = (string)null, page = 1 },
RouteHandler = typeof( MvcRouteHandler )
} );
Simply adding page = 1 (or anything which isn't matched in the Url) breaks all the links which match this route.
MVC Routes bug