relativeURLToAbsolute
Converts a relative URL to an absolute URL using the current document base URI.
Available since v1.0.0
Import
Section titled “Import”Signature
Section titled “Signature”Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
relativeUrl | string | The relative URL to convert |
Returns
Section titled “Returns”string — The absolute URL
Examples
Section titled “Examples”Convert a relative URL to absolute
Section titled “Convert a relative URL to absolute”Prepends the base URI to a relative path, cleaning duplicate slashes.
