$page->uri([$lang = null])

Returns the URI. The URI is the relative URL without the host or any subfolders.

  • $lang (string)
    Optional, in case of a multi-language site; returns the translated URI
  • return (string)

Example

<?php echo $page->uri() ?>