ApplicationRoot

The ApplicationRoot keyword is used to retrieve a text value that contains the URL root-path of the portal.

Mainly useful for the preview as that includes the portal-id in the url.

This function is SQL compatible. For more information about SQL compatibility, see our documentation.

Syntax

ApplicationRoot

In Preview, your application will show https://preview.wem.io/{portal-id}?sv={session} ApplicationRoot => "/123456" where 123456 is your portal id.

hostname() + applicationroot + "/path-to-navigationitem" => "preview.wem.io/123456/path-to-navigationitem" on Preview => "portalname.staging.wem.io/path-to-navigationitem" on Staging => "portalname.live.wem.io/path-to-navigationitem" on Live

Last updated

Was this helpful?