HostController: Use the correct history route to load more

This commit is contained in:
Johannes Meyer 2020-01-31 15:36:25 +01:00
parent ceb7c396a2
commit 65448ea9ac

View file

@ -130,7 +130,7 @@ class HostController extends Controller
'history.object_type = ?' => 'host'
]);
$url = Url::fromPath('icingadb/history')->setParams(clone $this->params);
$url = HostLinks::history($this->host);
if (! $this->params->has('page') || ($page = (int) $this->params->shift('page')) < 1) {
$page = 1;
}