Skip to content

Kirby 4.5.0

$page->url()

Returns the Url

$page->url(array|string|null $options = null): string

Parameters

Name Type Default
$options array|string|null null

Return type

string

Parent class

Kirby\Cms\Page

Example

<?= $page->url() ?>

Language specific URLs

On multi-language sites you can get the URL of a page for a different language, by passing the language code.

<?= $page->url('de') ?>