I am using Visual Web Developer 2010 with the standard login facilities and a link to the login page provided by Site.master. When I login however, ReturnUrl is not added to the request so I am unable to return directly to the page from which I requested the login. I've seen many posts explaining how to remove ReturnUrl but not one discussing my problem which is that I don't get ReturnUrl in the first place. I added a defaultUrl value to the forms element of Web.config and this works fine. Similarly if I specify a DestinationPageUrl on the login control in Account/Login.aspx that works fine too. However, simply returning to the original page "automatically" doesn't work. Any suggestions as to what I'm missing would be much appreciated.
↧