私はそのようなURLを持っています:/%20Account/%20LogOn?ReturnUrl=%2f+Admin%2f+Index
2 つの質問があります。
1) なぜ私は%20
前にAccount
とを持っているのLogOn
ですか? スペースのようなものですか?
%20
2)前Account
とを削除する方法はLogOn
?
多分ルートに何か問題がありますか?
それは私のクラスRegisterRoutesです:
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute(
null,
"",
new { controller = "Product", action = "List",category = (string)null,page=1 }) ;
routes.MapRoute(null,
"Page{page}",
new { controller = "Product", action = "List",category = (string)null });
routes.MapRoute(
null,
"{category}",
new { controller = "Product", action = "List", page = 1 });
routes.MapRoute(
null,
"{category}/Page{page}",
new { controller = "Product", action = "List"});
routes.MapRoute(null, " {controller}/ {action}");
}