I want the user to be able to provide a link to protected content, for example. www.mysite.com/#/article1, then when another user opens this link, they will be redirected to the login page, after which they will be redirected to the same URL.
I have a one-page application that uses hash tags, but I see no way to do this with regular URLs.
Currently .redirectPath ('/') should be a string, so I cannot make it a function that returns a string, it also does not have access to req.url, so I'm not sure how I can get this value dynamically.
This is not a twitter issue, it is the same with all oAuth logins that I consider.
source share