I am trying to get the full referring url to a page via javascript.
So far the closet I have come is
var lastUrl = document.referrer;
This does not include the query attached to the url.
var lastUrl = document.URL;
returns the current URL with the querystring intact.
Is there anyway of easily obtaining the referring url along with the referring query.
Copyright Notice:Content Author:「Sideshow」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/23682718/javascript-document-referrer-with-full-querystring