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: string): string;
Parameters
| Parameter | Type | Description | 
|---|---|---|
| baseUrl | string | The base URL. | 
| url | string | The URL to concat. Can be relative or absolute. | 
Returns:
string
The concatenated URL.