Skip to content

Kirby 5.0.4

$pagination->firstPageUrl()

Returns the Url for the first page

$pagination->firstPageUrl(): string|null

Return types

stringornull

This method modifies the existing $pagination object it is applied to and returns it again.

Parent class

Kirby\Cms\Pagination

Examples

$subpages   = $page->children()->paginate(10);
$pagination = $subpages->pagination();

echo $pagination->firstPageUrl();
// http://yourdomain/example/page:1