Skip to content

Kirby 5.0.4

$uri->base()

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

$uri->base(): string|null

Return types

stringornull

This method modifies the existing $uri object it is applied to and returns it again.

Parent class

Kirby\Http\Uri