Skip to content

@serenity-is/corelib / resetApplicationPath

Function: resetApplicationPath()

resetApplicationPath(): void

Defined in: src/base/config.ts:112

Re-reads Config.applicationPath from the DOM.

Returns

void

Remarks

Looks for <link id="ApplicationPath"> and copies its href; falls back to "/" if absent or when document is unavailable (SSR). Called once on module load; call again after you change the link element at runtime.

Example

document.getElementById("ApplicationPath").href = "/newPath/";
resetApplicationPath();