Looking for a way to get the URL of the page displayed.
I've tried a few different variations:
data = new URL(website)
def data = new URL(feedUrl).getText()
But get the following error when trying to save code:
Importing [java.net.URL] is not allowed
Any other way to get the current URL? The only part I really need is what I'm sending after the '?'.