我有以下问题:例如,我有这样的路线:
routes.Add(new Route("forums/thread/{threadOid}/last", new MvcRouteHandler())
Defaults = new RouteValueDictionary(
new { controller = "Thread", action ="ShowThreadLastPostPage"}),
Constraints = new RouteValueDictionary(new { threadOid = @"^\d+$" })
}
);
有没有一种方法可以使用RedirectToAction方法导航到这样的URL:
forums/thread/{threadOid}/last#postOid