As discussed here:
There must be a way to grab the url of a privouse node in tokens..eg [previous-page:url:absolute]
Is it possible to add a token that gets the HTTP_REFERER in future?
This should be added to the token module, not drupal core.
Yes thank you its the token module im refering to... and im sure theres alot of people who would appriciate this... or i can write something and the can add the patch ..#smh :p
Oh yes. I am in the situation of having a custom AccessDenied page with a link to the login form. But I want the user to login and then be redirected to the original page he wanted to see. This could be done via a link to /user/login?destination=[current-page:referrer:url:relative] or the like.
Duplicate of #2021969: Provide a token for [current-page:referrer]
Drupal is a registered trademark of Dries Buytaert.