Skip to main content

Function: openSitePage()

function openSitePage(
context,
siteUrl,
path,
__namedParameters?
): Promise<Page>;

Defined in: core/session.ts:80

Opens a page of the site (path relative to it) in a new tab and checks the session; throws NotLoggedInError, closing the tab, when Moodle answers with its login page.

Parameters​

ParameterType
contextBrowserContext
siteUrlstring
pathstring
__namedParameters{ follow?: boolean; }
__namedParameters.follow?boolean

Returns​

Promise<Page>