getAbsoluteUri

external fun getAbsoluteUri(relative: String, base: String? = definedExternally): String(source)

Given a relative Uri and a base Uri, returns the absolute Uri of the relative Uri.

//absolute Uri will be "https://test.com/awesome.png";
const absoluteUri = getAbsoluteUri('awesome.png', 'https://test.com');

Return

The absolute Uri of the given relative Uri.

Parameters

relative

The relative Uri.

base

The base Uri.

See also