ShowConfigFile: Fix object type being changed in output

fixes #1799
This commit is contained in:
Markus Frosch 2019-03-08 14:44:44 +01:00
parent b8e00e9b8c
commit 43e11879f7

View File

@ -61,8 +61,10 @@ class ShowConfigFile extends HtmlDocument
if ($match[2] === 'Service') { if ($match[2] === 'Service') {
return $match[0]; return $match[0];
} }
$controller = $match[2];
if ($match[2] === 'CheckCommand') { if ($match[2] === 'CheckCommand') {
$match[2] = 'command'; $controller = 'command';
} }
$name = $this->decode($match[3]); $name = $this->decode($match[3]);
@ -72,7 +74,7 @@ class ShowConfigFile extends HtmlDocument
$match[2], $match[2],
Link::create( Link::create(
$name, $name,
'director/' . $match[2], 'director/' . $controller,
['name' => $name], ['name' => $name],
['data-base-target' => '_next'] ['data-base-target' => '_next']
) )