This project is read-only.

Witch module redirect user to Login page when action is tagged with Authorize ?

Topics: ASP.NET MVC, ASP.NET Web Pages, General
Feb 22, 2013 at 12:59 PM
I work with MVC 4 since beta versions.
I built a multilingual framework designed to create CMS.
I need to create a kind of override to the method that redirect user to the login page if he is not authenticated.

This is because I use a custom route handler and if the user want to access an english page

For example :

so, if I set the login page in the web.config the user is redirected to

And I need to get the language part of the url from the query and insert it in the login address like :

Could you help me on this point ?