Skip to main content
Returns the route of the extension’s own page: the page id, the whole sub-path, and one key per segment.

Returns

Record<string, string>

Remarks

The host builds pageId, path and then 0, 1 and so on, one per segment of the sub-path. Only a page entry is routed, so this is empty for a widget, a tab, a row action and a settings panel. Re-renders when the owner navigates inside the page. Throws TAP_OUTSIDE_HOST outside a mount.

Example