I have a java class that I call via data-sly-use but unsure on how to access document.referrer.
I need to find out where the request came from.
Example: I'm on localhost:4503:/content/mysite/page1.html. if I click on a link that's in page1.html, I want to get the URI/URL of page1 after the new page loads.
This is Mozilla's explanation (https://developer.mozilla.org/en-US/docs/Web/API/Document/referrer) of document.referrer: The Document.referrer property returns the URI of the page that linked to this page.
Thanks