From 584ad5d19d73ee1d6482ba37cb47435460188852 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Preu=C3=9F?= Date: Sun, 19 May 2019 13:31:08 +0200 Subject: [PATCH] Fix navigation on modules with subpaths --- classes/Module.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/Module.class.php b/classes/Module.class.php index c8c8ea0..0343cf7 100644 --- a/classes/Module.class.php +++ b/classes/Module.class.php @@ -111,7 +111,7 @@ 'order' => $this->info->getOrder(), 'target' => $core->getHooks()->applyFilter('TARGET_' . $this->info->getName(), NULL), 'url' => $core->getHooks()->applyFilter('URL_' . $this->info->getName(), sprintf('/module/%s', basename($this->path))), - 'active' => $core->getRouter()->is(sprintf('/module/%s', basename($this->path))) + 'active' => $core->getRouter()->startsWith(sprintf('/module/%s', basename($this->path))) ]; return $entries;