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

Is something missing or incorrect? Edit this page on Github…