我有以下问题:
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