FYI - This is not MVC.
I am using web form authentication and have the following in my web.config.
<authentication mode="Forms">
<forms loginUrl="~/en/Admin/Login" timeout="2880" defaultUrl="/DashBoard" />
</authentication>
I am also using Routing for bilingual/culture.
My route looks like this:
RouteTable.Routes.MapPageRoute(
routeName, "{lang}/Admin/Login", "/Admin/Login.aspx", true, defaults, constraints, dataTokens);
If a user tries to access a restricted page they will be redirected to /en/Admin/Login based the value in the web.config. My problem is if a user is viewing the site in french, the page is redirected to the English log in page when it needs to redirect to /fr/Admin/Login.
Is there any way around this as the entire site needs to be bilingual?