Hey guys!
In our project, our service can be embedded as iFrame and we need to read out the URL of the site the service is embedded in.
The js we are using to accomplish this, is
var currentUrl = document.referrer; return currentUrl;
And the code works.
If I bind the script to a text, the current URL is displayed.
The problem is, we need the URL as a variable. And as you can see in the screenshot, even though the URL is displayed as text, it apparently has no value. And if we save it in a variable, it has no value as well.
What could we do?
Thank you in advance
Aaron