I have this ActionLink
to login:
@Html.ActionLink("Login", "Login", "Account", routeValues: null, htmlAttributes: new { id = "loginLink" })
From the Home view, it works, resulting in this url:
http://localhost:12676/Account/Login
But then, when another area is accessed, the ActionLink
results in this url:
http://localhost:12676/Admin/ManagerAccounts/Login/loginLink
What do I need to change to cause the ActionLink
to always result in ~/Account/Login
?