$page->slug()

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.

Example

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