Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# Constructor 2/10/2009 1:22 PM
When a user tries to access the admin without permission (being logged in) then they usually redirect to:
Login.aspx?ReturnUrl=%2fCuyahoga_NH2%2fAdmin%2fDefault.aspx

However, I get this:
Login?ReturnUrl=%2fCuyahoga_NH2%2fAdmin%2fDefault.aspx


In Error.aspx.cs I have found:
string returnUrl = "~/Login.aspx?ReturnUrl="
+ HttpContext.Current.Server.UrlEncode(HttpContext.Current.Items["VirtualUrl"].ToString());
HttpContext.Current.Response.Redirect(returnUrl, true);

This seems to be fine, although it does not fire when debugging?!

I am using a customised version of the trunk.
Any ideas on how to fix this small issue?

I will continue to try and find it.
# Constructor 2/10/2009 1:30 PM
Sorry, found it. The {loginUrl="Login"} in:
authentication mode="Forms"
forms name="CuyahogaUser" loginUrl="Login" protection="All" timeout="30" path="/"/
/authentication

Changed to:
authentication mode="Forms"
forms name="CuyahogaUser" loginUrl="Login.aspx" protection="All" timeout="30" path="/"/
/authentication

Maybe it was to do with the MVC work.
# martijnb 2/11/2009 8:41 AM
Yes, the redirect to /Login is because of the MVC stuff.