Skip to content

Kirby 5.1.1

$request->url()

Returns the current Uri object. If you pass props you can safely modify the Url with new parameters without destroying the original object.

$request->url(array|null $props = null): Kirby\Http\Uri

Parameters

Name Type Default
$props arrayornull null

Return type

Kirby\Http\Uri

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

Parent class

Kirby\Http\Request