mapLegacyUrlToHost()
Home > @gooddata/sdk-ui-pluggable-host > mapLegacyUrlToHost
mapLegacyUrlToHost() function
This API is provided as an alpha preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Maps a legacy KD/AD/modeler/metrics URL (embedded or standalone) to its host equivalent, or null when it is not a recognized legacy URL. Mirrors the standalone→host redirects that live in the legacy apps; runs client-side because the workspace id is in the (server-invisible) hash.
Signature:
export declare function mapLegacyUrlToHost(location: ILegacyLocation): string | null;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
location |
Returns:
string | null