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

Returns the slug. The slug is the last part of the page's URL. It is translatable in multi-language sites while the UID always stays the page's directory name without the sorting number.

  • $lang (string)
    Optional, in case of a multi-language site only
  • return (string)


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

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