Hi there,
I'm successfully using routing with Webforms 4.0.
However, I'd like to be ble to deal with when a trailing querystring parameter is added onto the path, and essentially ignore this addition.
This problem is occurring because Google Adwords is adding on a querystring parameter for tracking purposes, which is mucking up the routing.
Example:
<domain>/en/food/potatoes - this works ok
<domain>/en/food/potatoes?gclid=balhblahblah1234445 - this fails
The routing is setup with:
routes.MapPageRoute("route2", "{loc}/{path}/{path2}", "~/Default.aspx");
It seems like "path2" is being populated with "potatoes" and all of the querystring stuff.
Basically, can I tell routing to omit the question mark and the trailing string.< ...
Go to the complete details ...