ServiceController: Use the correct history route to load more

This commit is contained in:
Johannes Meyer 2020-01-31 15:37:00 +01:00
parent 65448ea9ac
commit e4fb4d5fcb

View file

@ -137,7 +137,7 @@ class ServiceController extends Controller
'history_service.id = ?' => $this->service->id
], Sql::ANY);
$url = Url::fromPath('icingadb/history')->setParams(clone $this->params);
$url = ServiceLinks::history($this->service, $this->service->host);
if (! $this->params->has('page') || ($page = (int) $this->params->shift('page')) < 1) {
$page = 1;
}