Get URL

amerta


amerta / amerta/payload/utilities/getURL / getURL

Function: getURL()

getURL(path, locale?): string

Defined in: amerta/payload/utilities/getURL.ts:59

Get the url for a given path and locale, if locale is empty or default, it is omitted from the path.

Parameters

| Parameter | Type | Description | | ------ | ------ | ------ | | path | string | string | | locale? | string | null | string |

Returns

string

string