Get URL of the Current Page?

Cool! Might be useful to also populate them into the dynamicPage 'params' mechanism, if that's possible.

Thank you!

I'm now here trying to do the same thing.

I have an app; and in my app I am trying to determine if the page is being loaded over local or over remote admin. I include a css and js file from the hub file manager; and the base url to the files will change depending if the request is local (http://xxx.xxx.x.xxx/) or remote admin (https://remoteaccess.aws.hubitat.com/).

Is there any flag or check to determine if the page is loading over local or remote?

Nevermind.
It seems using relative instead of absolute urls work both in local and remote.
I'm not sure why.. but I'll take the win.

2 Likes