diff --git a/Admin/Install/Navigation.install.json b/Admin/Install/Navigation.install.json index 02a4ae5..42cfa69 100644 --- a/Admin/Install/Navigation.install.json +++ b/Admin/Install/Navigation.install.json @@ -1,11 +1,11 @@ [ { "id": 1000201001, - "pid": "/backend", + "pid": "/", "type": 2, "subtype": 1, "name": "Dashboard", - "uri": "{/lang}/backend?{?}", + "uri": "{/prefix}?{?}", "target": "self", "icon": null, "order": 1, diff --git a/Admin/Routes/Web/Backend.php b/Admin/Routes/Web/Backend.php index b98e440..dab93f1 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(\?.*)?$' => [ + '^.*(\?.*)?$' => [ [ 'dest' => '\Modules\Dashboard\Controller\BackendController:viewDashboard', 'verb' => RouteVerb::GET, diff --git a/info.json b/info.json index e190e28..530df67 100644 --- a/info.json +++ b/info.json @@ -26,7 +26,7 @@ "load": [ { "pid": [ - "/backend" + "/" ], "type": 4, "for": "Content", @@ -35,7 +35,7 @@ }, { "pid": [ - "/backend" + "/" ], "type": 5, "from": "Dashboard",