Get Current URL in UI Builder Client Script

Stefan Uzunov
Tera Contributor

Hey, everyone.

Trying to find out how to get the current URL in Client Script created in UI Builder. It seems I have no access to 'window' object. Any other alternatives? 

1 ACCEPTED SOLUTION

Yeah you should be able to grab a parameter from the url and use it for the src url on the iframe. Unfortunately there's not a great way for the contents of the iframe to communicate back with the UIB page using the oob component. You could build a custom iframe component that would do that, though.

View solution in original post

5 REPLIES 5

akshaybabar
Tera Contributor

Hi , I want to access the window object inside of this function but I am not able to access it. Please suggest some way to access the window as I want to pass some values from the window object into the iframe URL as query params.


akshaybabar_0-1716211899844.png