{"id":7522,"date":"2015-07-18T03:26:30","date_gmt":"2015-07-18T03:26:30","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2015\/07\/18\/angularjs-satellizer-redirect-back-to-previous-page-open-source-projects-sahat-satellizer\/"},"modified":"2015-07-18T03:26:30","modified_gmt":"2015-07-18T03:26:30","slug":"angularjs-satellizer-redirect-back-to-previous-page-open-source-projects-sahat-satellizer","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2015\/07\/18\/angularjs-satellizer-redirect-back-to-previous-page-open-source-projects-sahat-satellizer\/","title":{"rendered":"angularjs satellizer redirect back to previous page-open source projects sahat\/satellizer"},"content":{"rendered":"<p>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?<\/p>\n<p>for example. If the user request to access &#8216;\/customer\/detail\/123&#8217;, but user is redirected to the login page (\/account\/login), after the login is successful, how could I redirect the user back to &#8216;\/customer\/detail\/123&#8217;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7522","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7522","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=7522"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7522\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=7522"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=7522"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=7522"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}