【发布时间】:2019-12-28 19:41:40
【问题描述】:
<a asp-action="Logout" asp-controller="Account" > logout</a>
在主页没有问题,链接看起来像 /account/logout 但在用户区页面链接看起来像 /user/account/logout 和错误未找到
这是我的地图路线
endpoints.MapControllerRoute(
name: "areas",
pattern: "{area:exists}/{controller=Home}/{action=Index}/{id?}");
endpoints.MapControllerRoute("defualt", "{controller=Home}/{action=Index}/{id?}");
【问题讨论】:
-
我不会得到你的实际问题,这是一种重定向问题的使用 - RedirectToAction
-
请尝试正确解释,因为您根本不清楚。像这样尝试什么是输入,你需要什么作为输出。
标签: asp.net asp.net-mvc asp.net-core asp.net-core-3.0 .net-core-3.0