Skip to content

Kirby 4.5.0

Url::stripPath()

Removes the path from the Url

Url::stripPath(?string $url = null): string

Parameters

Name Type Default
$url string|null null

Return type

string

Parent class

Kirby\Cms\Url inherited from Kirby\Http\Url