Skip to content

Kirby 4.2.0

$uri->base()

Returns the base url (scheme + host) without trailing slash

$uri->base(): string|null

Return type

string|null

Parent class

Kirby\Http\Uri