I want a user to be able to share a link to secure content eg. www.mysite.com/#/article1, then when another user opens this link, they get redirected to the login page, then on complete they get redirected to the same URL.
I have a single page app so using hash tags, but I don't see any way to do this with normal URLs either.
Currently .redirectPath('/') has to be a string so I cannot make it a function that returns a string, also it does not have access to req.url so not sure how I would be able to dynamically get that value.
This is not a twitter specific issue, it is the same with all the oAuth logins I believe.