Base solution for your next web application
Open Closed

Redirect to url after Login #927


User avatar
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)
  • User Avatar
    0
    hikalkan created
    Support Team

    In the template, I did it in ASP.NET side. Any controller redirects to login page if current use is not logged in.

  • User Avatar
    0
    kacey created

    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.