Is it possible to dynamically target current site's url when using "open external url"?

Hi Everyone,

I’m trying to create pretty url’s - think of example.com/profile/john.doe

I’m successful in opening the page when the URL is used and I can access that page by updating my links to point to the above url.

The problem I’m facing is my dev environment is - example.com/version-test/profile/john.doe
and my prod is the above link.

Adding the full test URL works while testing but I have to remember to change all my links before going to prod which is risky if I forget. Is there anyway to reference the current environment instead of me putting the full URL? I tried something like ./profile/john.doe but bubble takes that URL and attempts to access it?

Is there something I can do so I don’ have to change url’s between prod and dev?

Hey

“Website Home URL” should work

image

Thank you so much. It worked perfectly!

1 Like