ReadonlylistGUID of the currently open list or library as a string.
undefined when the page is not in a list context.
ReadonlylistServer-relative URL of the currently open list or library (e.g. /sites/myweb/Lists/Ciselnik).
undefined when the page is not in a list context.
ReadonlyserverServer-relative URL of the current web (e.g. / or /sites/myweb).
Use this to build server-relative paths to lists and libraries on the current web.
ReadonlysiteAbsolute URL of the current site collection (e.g. https://tenant.sharepoint.com/sites/myweb).
Differs from webUrl when working inside a subsite.
ReadonlywebAbsolute URL of the current web (e.g. https://tenant.sharepoint.com/sites/myweb).
Provides quick access to the most commonly used SharePoint page context values.
Remarks
List GUID: Prefer
tisa.page.listIdwhenever you need the current list’s GUID as a string. It works in every custom-script host (including list forms wheretisa.context.pageContext.listmay exposeguidinstead ofid). Avoid readingtisa.context.pageContext.list.id/.guiddirectly unless you have a specific reason.Example
Example