I am trying to get the full link url to a page through javascript.
So far in the closet I came
var lastUrl = document.referrer;
This does not include a request attached to the URL.
var lastUrl = document.URL;
returns the current URL with an intact chain.
In any case, it’s easy to get the link URL along with the link request.
source
share