Skip to content

Kirby 3.7.5

$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