diff --git a/Admin/Install/Navigation.install.json b/Admin/Install/Navigation.install.json index a1485ce..14335f4 100644 --- a/Admin/Install/Navigation.install.json +++ b/Admin/Install/Navigation.install.json @@ -1,11 +1,11 @@ [ { "id": 1000801001, - "pid": "/backend", + "pid": "/", "type": 2, "subtype": 1, "name": "Surveys", - "uri": "{/lang}/backend/survey/list?{?}", + "uri": "{/prefix}survey/list?{?}", "target": "self", "icon": null, "order": 50, @@ -15,11 +15,11 @@ "children": [ { "id": 1000802001, - "pid": "/backend/survey", + "pid": "/survey", "type": 3, "subtype": 1, "name": "List", - "uri": "{/lang}/backend/survey/list?{?}", + "uri": "{/prefix}survey/list?{?}", "target": "self", "icon": null, "order": 1, @@ -30,11 +30,11 @@ }, { "id": 1000803001, - "pid": "/backend/survey", + "pid": "/survey", "type": 3, "subtype": 1, "name": "Create", - "uri": "{/lang}/backend/survey/create?{?}", + "uri": "{/prefix}survey/create?{?}", "target": "self", "icon": null, "order": 5, diff --git a/Admin/Routes/Web/Backend.php b/Admin/Routes/Web/Backend.php index 0fdb4f3..0f5363c 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/survey/list.*$' => [ + '^.*/survey/list.*$' => [ [ 'dest' => '\Modules\Surveys\Controller\BackendController:viewSurveysList', 'verb' => RouteVerb::GET, @@ -17,7 +17,7 @@ return [ ], ], ], - '^.*/backend/survey/create.*$' => [ + '^.*/survey/create.*$' => [ [ 'dest' => '\Modules\Surveys\Controller\BackendController:viewSurveysCreate', 'verb' => RouteVerb::GET, @@ -28,7 +28,7 @@ return [ ], ], ], - '^.*/backend/survey/profile.*$' => [ + '^.*/survey/profile.*$' => [ [ 'dest' => '\Modules\Surveys\Controller\BackendController:viewSurveysProfile', 'verb' => RouteVerb::GET, diff --git a/info.json b/info.json index 5d910e3..727a31a 100644 --- a/info.json +++ b/info.json @@ -26,7 +26,7 @@ "load": [ { "pid": [ - "/backend/survey" + "/survey" ], "type": 4, "for": 0, @@ -35,7 +35,7 @@ }, { "pid": [ - "/backend" + "/" ], "type": 5, "from": "Surveys",