Forms Authentication - Redirect Back to Original Domain
问题 Example: Application = https://test2.mytest.com/MyApplication/Download.aspx The application has forms authentication enabled in the web.config: <authentication mode="Forms"> <forms loginUrl="https://test.mytest.com/Login/" name=".ASPXAUTH"/> </authentication> <authorization> <deny users="?"/> </authorization> When accessing the application it correctly redirect to the login page: https://test.mytest.com/Login/?ReturnUrl=%2fMyApplication%2fDownload.aspx However, after successfully logging in