Skip to content

Kirby 4.1.2

$pagination->firstPageUrl()

Returns the Url for the first page

$pagination->firstPageUrl(): string|null

Return type

string|null

Parent class

Kirby\Cms\Pagination

Example

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

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