core.concaturls
Home > @medplum/core > concatUrls
concatUrls() function
Concatenates the given base URL and URL.
If the URL is absolute, it is returned as-is.
Signature:
export declare function concatUrls(baseUrl: string | URL, path: string): string;
Parameters
Parameter | Type | Description |
---|---|---|
baseUrl | string | URL | The base URL. |
path | string | The URL to concat. Can be relative or absolute. |
Returns:
string
The concatenated URL.