$pagination->pageUrl($page)
Returns the absolute URL for the given page
-
return (string)
<?php
$subpages = $page->children()->paginate(10);
$pagination = $subpages->pagination();
?>
…
<a href="<?= $pagination->pageUrl(5) ?>">
Go to page 5
</a>