Javascript help needed

Hi all,

I am trying to get the URL present in the URL bar with Javascript. I can’t use the ‘this url’ data call because the Bubble app is within an iframe, so using that just returns the iframe’s url (the address of the app).

I’d like to get the actual URL in the URL bar (which is a different domain to what the Bubble app is on).

Searching StackOverflow I see the following, but not sure how i can use this in Bubble:

Happy to pay for this if it’s a little more hands on. @ryley.randall

Reece

1 Like

Use Expression element in Toolbox.

Just put:

document.referrer

as the expression. Your desired value appears at Expression’s value output.

3 Likes

You sir, are a genius. Thanks a lot!

1 Like