Skip to content

Kirby 3.5.7.1

$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\Http\Uri

Parameters

Name Type Default
$slash bool false

Return type

Kirby\Http\Uri

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

Parent class

Kirby\Http\Uri