We’re working on a Retool workflow to send an SMS that contains a custom URL with two dynamic parameters. The URL belongs to an external app, and we need to ensure that when the recipient clicks the link, the app can properly read and process these parameters.
mydomain.retool.com/p/portal-test/customer?data=MTIzNDU6T1JELTY3ODkw
I have tried:
We’ve tested multiple approaches, but we’re still facing issues with retrieving the URL parameters inside the external app. Here’s what we’ve attempted:
Generating the URL dynamically in Retool and sending it via SMS.
Using
window.location.href
to retrieve the full URL (but it returns Retool’s iframe sandbox URL).
Trying
document.URL
to extract the URL but facing similar iframe issues.
Extracting query parameters using
window.location.search
, but it's not always returning the correct values.
Testing
window.parent.location.href
, but it's blocked due to cross-origin iframe restrictions.
Using
document.referrer
to get the previous page's URL, but it doesn’t always contain query parameters.
Manually checking in the browser console (
F12
) to verify if the parameters exist.
Using
console.log(window.location.href)
and console.log(document.referrer)
for debugging.
I have used Preload JS and a JS query that runs when page loads
Any insights or suggestions would be greatly appreciated!
Thanks in advance!