I have a website, with basic Forms Authentication working alright. Users have emails that contain links to my site, with a querystring variable. Users are prompted to login correctly, but using
FormsAuthentication.RedirectFromLoginPage(userName, false);
Does not work when the original url contains a querystring.
I've tried these requests, without being logged:
http://localhost/default.aspx -- redirect to login, then back to default OK
This is the loaded URL before login:
http://localhost/login.aspx
http://localhost/TaskDetail.aspx -- redirect to login, then back to default FAIL
This is the loaded URL before login:
http://localhost/login.aspx?ReturnUrl=%2ftaskdetail.aspx
http://localhost/TaskDetail.aspx?id=5 -- redirect to login, then back to default FAIL
This is the loaded URL before login:
http://localhost/login.aspx?ReturnUrl=%2fTaskDetail.aspx%3fTaskID%3d2464&TaskID=2464
Any help is really appreciated.