"The return URL specified for request redirection is invalid" error when using forms authentication

  In SharePoint Server 2007, when you try and login to a forms-based site the .RedirectFromLoginPage results in the following error: "The return URL specified for request redirection is invalid" Basically, this would happen when you navigate to a URL like http://server/_layouts/login.aspx?ReturnUrl=default.aspx%3f%3a  So, why does this happen ? This is a problem with the URL…

15