Skip to content

Redirect Back to the URL he came from #46

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
a14m opened this issue Feb 13, 2015 · 2 comments
Closed

Redirect Back to the URL he came from #46

a14m opened this issue Feb 13, 2015 · 2 comments

Comments

@a14m
Copy link

a14m commented Feb 13, 2015

I'm using this module with in a project... I'm facing the issue that I need to redirect back to where the user intended after he sign in... but I can't figure that out

here is a snippet of the code to grasp what I'm trying to achieve

    .state 'user.confirm',
      url: '/auth/confirmations/:confirmationToken'
      templateUrl: 'app/auth/confirm_email.html'
      controller: 'ConfirmationCtrl'
      controllerAs: 'confirm'
      data:
        permissions:
          only: ['user']
          redirectTo: 'user.login' 

this is basically used with confirming user emails... If the user is not logged in ... he is redirected to login
but after he login... he is redirected to the home page not back to the url /auth/confirmations/:confirmationToken

@RafaelVidaurre
Copy link
Owner

This is the same as #26 please help voting for the following issue at the ui-router repo: Issue

@karser
Copy link

karser commented May 8, 2015

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants