这是我的RouteConfig,我在我的网站上使用了一个SEO友好网址。浏览器"返回"按钮在Chrome和Firefox中运行良好,但在Internet Explorer和Windows Edge中存在问题。
public class RouteConfig
{
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute(
"SearchType", // Route name
"Search/{SpaceType}/{Type}/{Location}", // URL with parameters
new { controller = "SearchListSpace", action = "SearchListSpace", Location = UrlParameter.Optional } // Parameter defaults
);
routes.MapRoute(
"View", // Route name
"{SpaceType}/{City}/{List_Space_Code}", // URL with parameters
new { controller = "ListSpace", action = "View" } // Parameter defaults
);
routes.MapRoute(
name: "Default",
url: "{controller}/{action}/{id}",
defaults: new { controller = "Account", action = "Index", id = UrlParameter.Optional }
);
}
}
I get this, when the back button is clicked
任何关于如何解决这个问题的想法都将不胜感激。