How to prevent Url.RouteUrl(…) from inheriting route values from the current request
My solution was this : An HtmlExtension helper method : public static string RouteUrl(this UrlHelper urlHelper, string routeName, object routeValues, bool inheritRouteParams) { if (inheritRouteParams) { // call standard method return urlHelper.RouteUrl(routeName, routeValues); } else { // replace urlhelper with a new one that has no inherited route data urlHelper = new UrlHelper(new RequestContext(urlHelper.RequestContext.HttpContext, new … Read more