$page->url()

Returns the full URL of the page

  • return (string)

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