Я полагаю, что маршруты переполнения стека настроены примерно так:
routes.MapRoute("question-permalink", "q/{questionId}/{userId}",
new { controller = "PermaLinkController",
action = "Question", userId = UrlParameter.Optional },
new { questionId = "[0-9]+", userId = "[0-9]+" });
На основании 302 Found
, указывающего на текущее местоположение вопроса: я предполагаю, что действие вопроса контроллера PermaLink выглядит примерно так:
public class PermaLinkController : Controller
{
public Question (int questionId, int? userId)
{
// do work to record userId that shared link
// ...
// now redirect
Response.RedirectToRoute("question", new { questionId = questionId });
}
}