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.
http://mydomain.com/paths/file.php, this being the previous referring page where as I requirehttp://mydomain.com/paths/file.php?inherit=true&id=123. Usingdocument.URLwill bring the full path but of the currently viewed page