After authentication, asp.net redirects my users to …/myapp/default.aspx instead of …/myapp/
Is there some way of fixing this? I think it’s a little ugly not to mention redundant to contain the extra default.aspx on the url.
I’ve tried putting the following code in my default.aspx.cs page_load function, but it results in a redirect loop because it cannot distinguish whether the user is accessing myapp/ or myapp/default.aspx:
if (Request.RawUrl.ToLower().EndsWith("/default.aspx"))
Response.Redirect("./");
Thanks!
If you are using a login control, decide yourself how the redirect will happen.
Use the login control’s event (I think it is Authenticate) and: