Skip to content

Kirby 4.5.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