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
Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)
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.
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
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.
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image)