We have recently upgraded a web app from .Net 3.5 to .Net 4
This has introduced an issue with the ReturnURL in the querystring when logging in.
Prior to upgrade you could visit http://www.somedomain.com/myweb and on redirection to the login page the address would be this - http://www.somedomain.com/myweb/authenticate.aspx?ReturnUrl=%2fmyweb%2fdefault.aspx
Now after upgrade the address is as above but default.aspx is missing from the ReturnURL parameter.
After logging in you are redirected to a blank page.
The default document in IIS is set as before.
Does anybody have any idea whats causing the document name to be stripped from ReturnURL after upgrade?