当用户尝试访问需要授权的页面时,我遇到了重定向登录页面的问题。出于某种原因,它想指向:
http://domain.com/Account/Login
当它应该重定向到:
http://domain.com/Account/LogOn
我相信我已经在 web.config 文件中正确设置了它:
<authentication mode="Forms">
<forms loginUrl="~/Account/LogOn" timeout="2880" />
</authentication>
但由于某种原因,它仍然会错误地重定向。我还在整个解决方案中搜索了“登录”,但没有看到其他地方可以指定帐户/登录。
如何修复它以正确重定向?