Redirecting to a custom route in MVC
问题 I have setup a custom route in my MVC site. I am having trouble figuring out how to redirect to it though. Here is my custom route code: public class MemberUrlConstraint : IRouteConstraint { public bool Match(HttpContextBase httpContext, Route route, string parameterName, RouteValueDictionary values, RouteDirection routeDirection) { if (values[parameterName] != null) { var permalink = values[parameterName].ToString(); return string.Equals(permalink, Member.GetAuthenticatedMembersUrl(),