Skip to content

Kirby 3.9.8

Url::to()

Smart resolver for internal and external urls

Url::to(?string $path = null, array|string|null $options = null): string

Parameters

Name Type Default Description
$path string|null null
$options array|string|null null Either an array of options for the Uri class or a language string

Return type

string

Parent class

Kirby\Cms\Url