diff --git a/modules/doc/library/Doc/DocController.php b/modules/doc/library/Doc/DocController.php index 36abe6b10..10a9b1d40 100644 --- a/modules/doc/library/Doc/DocController.php +++ b/modules/doc/library/Doc/DocController.php @@ -9,6 +9,21 @@ use Icinga\Web\Controller; class DocController extends Controller { + /** + * {@inheritdoc} + */ + protected function moduleInit() + { + // Our UrlParams object does not take parameters from custom routes into account which is why we have to set + // them explicitly + if ($this->hasParam('chapter')) { + $this->params->set('chapter', $this->getParam('chapter')); + } + if ($this->hasParam('moduleName')) { + $this->params->set('moduleName', $this->getParam('moduleName')); + } + } + /** * Render a chapter *