0
hans abelshausen created
Hi, I have a lot of sites which are only for logged in users. If someone tries to add the URL, the Controller redirects the user to the Login.cshtml page. After Login I would like to Redirect to the url the user tries to reach. Where can I store this url path. I have tried to put it in the app.js $rootScope.$on('$stateChangeStart', function (event, toState, toParams, fromState, fromParams) {} but this didn't work. Can anyone help me? Thanks in advance
2 Answer(s)
-
0
In the template, I did it in ASP.NET side. Any controller redirects to login page if current use is not logged in.
-
0
How do I disable this? I need the application to be able to start from the default page and can later login to do some specific tasks.
Have an answer to this question?
Log in
and write your answer.