Skip to content

Kirby 3.8.4

$uri->setSlash()

Set if a trailing slash should be added to the path when the URI is being built

$uri->setSlash(bool $slash = false): Kirby\Uuid\Uri

Parameters

Name Type Default
$slash bool false

Return type

Kirby\Uuid\Uri

This method does not modify the existing $uri object but returns a new object with the changes applied. Learn more →

Parent class

Kirby\Uuid\Uri inherited from Kirby\Http\Uri