getPluggableApplicationHref()
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production.
Composes the URL under which the given pluggable application is reachable.
export declare function getPluggableApplicationHref(app: PluggableApplicationRegistryItem, workspaceId?: string): string;
Parameters
Parameter | Type | Description |
|---|---|---|
app | application to compose the URL for | |
workspaceId | string | (Optional) workspace to compose the URL in; substituted as an empty string when omitted |
Returns
string
the application’s URL
Remarks
A workspace-scoped application lives under /workspace/\{workspaceId\}, an organization-scoped one under /organization. An external application contributes its own URL, with any \{workspaceId\} placeholder substituted.