diff --git a/Admin/Install/Navigation.install.json b/Admin/Install/Navigation.install.json index ddc66ce..6aee3b4 100644 --- a/Admin/Install/Navigation.install.json +++ b/Admin/Install/Navigation.install.json @@ -5,7 +5,7 @@ "type": 2, "subtype": 1, "name": "QA", - "uri": "{/base}/{/lang}/backend/qa/dashboard?{?}", + "uri": "/{/lang}/backend/qa/dashboard?{?}", "target": "self", "icon": null, "order": 50, @@ -19,7 +19,7 @@ "type": 3, "subtype": 1, "name": "QA", - "uri": "{/base}/{/lang}/backend/qa/dashboard?{?}", + "uri": "/{/lang}/backend/qa/dashboard?{?}", "target": "self", "icon": null, "order": 1, @@ -34,7 +34,7 @@ "type": 3, "subtype": 1, "name": "Create", - "uri": "{/base}/{/lang}/backend/qa/question/create?{?}", + "uri": "/{/lang}/backend/qa/question/create?{?}", "target": "self", "icon": null, "order": 5, @@ -49,7 +49,7 @@ "type": 3, "subtype": 1, "name": "Badges", - "uri": "{/base}/{/lang}/backend/qa/badge/list?{?}", + "uri": "/{/lang}/backend/qa/badge/list?{?}", "target": "self", "icon": null, "order": 10, diff --git a/Controller.php b/Controller.php index bbab1b5..004e51e 100644 --- a/Controller.php +++ b/Controller.php @@ -98,7 +98,7 @@ class Controller extends ModuleAbstract implements WebInterface public function setUpBackend(RequestAbstract $request, ResponseAbstract $response, $data = null) { $head = $response->get('Content')->getData('head'); - $head->addAsset(AssetType::CSS, $request->getUri()->getBase() . 'Modules/QA/Theme/Backend/styles.css'); + $head->addAsset(AssetType::CSS, '/Modules/QA/Theme/Backend/styles.css'); } /** diff --git a/Theme/Backend/qa-dashboard.tpl.php b/Theme/Backend/qa-dashboard.tpl.php index 667e31b..93ec39d 100644 --- a/Theme/Backend/qa-dashboard.tpl.php +++ b/Theme/Backend/qa-dashboard.tpl.php @@ -12,7 +12,7 @@ echo $this->getData('nav')->render(); ?> = $this->printHtml(count($question->getAnswers())); ?>