diff --git a/Admin/Install/Navigation.install.json b/Admin/Install/Navigation.install.json index 0bcf0a4..4a52aa3 100644 --- a/Admin/Install/Navigation.install.json +++ b/Admin/Install/Navigation.install.json @@ -1,11 +1,11 @@ [ { "id": 1006001001, - "pid": "/backend", + "pid": "/", "type": 2, "subtype": 1, "name": "QA", - "uri": "{/lang}/backend/qa/dashboard?{?}", + "uri": "{/prefix}qa/dashboard?{?}", "target": "self", "icon": null, "order": 50, @@ -15,11 +15,11 @@ "children": [ { "id": 1006002001, - "pid": "/backend/qa", + "pid": "/qa", "type": 3, "subtype": 1, "name": "QA", - "uri": "{/lang}/backend/qa/dashboard?{?}", + "uri": "{/prefix}qa/dashboard?{?}", "target": "self", "icon": null, "order": 1, @@ -30,11 +30,11 @@ }, { "id": 1006003001, - "pid": "/backend/qa", + "pid": "/qa", "type": 3, "subtype": 1, "name": "Create", - "uri": "{/lang}/backend/qa/question/create?{?}", + "uri": "{/prefix}qa/question/create?{?}", "target": "self", "icon": null, "order": 5, @@ -45,11 +45,11 @@ }, { "id": 1006004001, - "pid": "/backend/qa", + "pid": "/qa", "type": 3, "subtype": 1, "name": "Badges", - "uri": "{/lang}/backend/qa/badge/list?{?}", + "uri": "{/prefix}qa/badge/list?{?}", "target": "self", "icon": null, "order": 10, diff --git a/Admin/Routes/Web/Backend.php b/Admin/Routes/Web/Backend.php index 4a6d503..1965274 100644 --- a/Admin/Routes/Web/Backend.php +++ b/Admin/Routes/Web/Backend.php @@ -6,7 +6,7 @@ use phpOMS\Account\PermissionType; use phpOMS\Router\RouteVerb; return [ - '^.*/backend/qa.*$' => [ + '^.*/qa.*$' => [ [ 'dest' => '\Modules\QA\Controller\BackendController:setUpBackend', 'verb' => RouteVerb::GET, @@ -17,7 +17,7 @@ return [ ], ], ], - '^.*/backend/qa/dashboard.*$' => [ + '^.*/qa/dashboard.*$' => [ [ 'dest' => '\Modules\QA\Controller\BackendController:viewQADashboard', 'verb' => RouteVerb::GET, @@ -28,7 +28,7 @@ return [ ], ], ], - '^.*/backend/qa/question.*$' => [ + '^.*/qa/question.*$' => [ [ 'dest' => '\Modules\QA\Controller\BackendController:viewQADoc', 'verb' => RouteVerb::GET, @@ -39,7 +39,7 @@ return [ ], ], ], - '^.*/backend/qa/question/create.*$' => [ + '^.*/qa/question/create.*$' => [ [ 'dest' => '\Modules\QA\Controller\BackendController:viewQAQuestionCreate', 'verb' => RouteVerb::GET, diff --git a/Theme/Backend/qa-dashboard.tpl.php b/Theme/Backend/qa-dashboard.tpl.php index 39d885c..beb5004 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())); ?>