Reputation: 9786
/Routeurl?value=1
Gets redirected to...
/Routeurl/
Where as...
/RouteUrl/?value=1
stays as...
/RouteUrl/?value1
I need the query string parameters in there. How do I get routing to ignore them!
EDIT
This only happens on IIS.
Upvotes: 0
Views: 519
Reputation: 76
Routing should ignore them inherently if the Routes are not defined in the Global.asax file.
routes.MapRoute(
"Default",
"{controller}/{action}/{id}",
new { controller = "Home", action = "Index", id = "" }
);
Upvotes: 1