Skip to main content

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

ParameterTypeDescription
baseUrlstringThe base URL.
urlstringThe URL to concat. Can be relative or absolute.

Returns:

string

The concatenated URL.