I have the following URL in mind:
/restaurants/italian/miami.html
/restaurants/italian/miami-p2.html
Using these routes
routes.MapRoute(null, "{category}/{branch}/{city}-p{page}.html",
new { controller = "Branch", action = "Index" });
routes.MapRoute(null, "{category}/{branch}/{city}.html",
new { controller = "Branch", action = "Index", page = 1 });
Now for my question, i want to make "-p{page}" portion of the url optional, not just the {page} parameter. That way i can use a single route and also use it to map outbound urls with Url.RouteUrl(RouteValueDictionary)
(which then auto removes the page portion if the page parameter in the dictionary is 1).