angularjs satellizer redirect back to previous page-open source projects sahat/satellizer

I am using satellizer in my angular code to handle my authentication with local api. I am not integrating any third party API authentication with my site, everything is local. I get the website working, if the user is with invalid token, system will redirect the user to login page. What if I need to bring the requested link back after the user login, how do I do that?

for example. If the user request to access ‘/customer/detail/123’, but user is redirected to the login page (/account/login), after the login is successful, how could I redirect the user back to ‘/customer/detail/123’