1
私はASP.NET MVCバージョン1のWebサイトで、Windows Server 2008 R2(IIS7、統合モード)に展開しています。このサイトはイントラネット環境ではうまく動作しますが、最近はパブリックドメイン名でインターネットに公開されています。 RedirectToActionは依然としてプライベートIPを目指し、ログインページへのリダイレクトを引き起こします。どこで変更を指定できますか?サイトがインターネットから消費されたときのRedirectToActionの決定方法
notAnExpert請願については、私のコードの抜粋です。ここでは特別な何もない、唯一のデフォルトの規約:私のGlobal.asaxのどちらで
return RedirectToAction(string.Format("Details/{0}", CampaignId), "Campaigns");
:
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute("clicked_links", "Clicked/Index", new { controller="Clicked", action="Index"});
routes.MapRoute(
"Default", // Route name
"{controller}/{action}/{id}", // URL with parameters
new { controller = "Home", action = "Index", id = "" } // Parameter defaults
);
}
RedirectToActionの外観のコードを投稿できますか?あるいは、あなたのRouteHandlerを見たいかもしれません – WorldIsRound