$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
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') ?>