diff --git a/Admin/Install/Navigation.install.json b/Admin/Install/Navigation.install.json index 8288266..cd12e61 100644 --- a/Admin/Install/Navigation.install.json +++ b/Admin/Install/Navigation.install.json @@ -5,7 +5,7 @@ "type": 2, "subtype": 1, "name": "Draw", - "uri": "{/base}/{/lang}/backend/draw/list?{?}", + "uri": "/{/lang}/backend/draw/list?{?}", "target": "self", "icon": null, "order": 70, @@ -19,7 +19,7 @@ "type": 3, "subtype": 1, "name": "List", - "uri": "{/base}/{/lang}/backend/draw/list?{?}", + "uri": "/{/lang}/backend/draw/list?{?}", "target": "self", "icon": null, "order": 1, @@ -34,7 +34,7 @@ "type": 3, "subtype": 5, "name": "Create", - "uri": "{/base}/{/lang}/backend/draw/create?{?}", + "uri": "/{/lang}/backend/draw/create?{?}", "target": "self", "icon": null, "order": 15, diff --git a/Controller.php b/Controller.php index d0fe3f9..474c346 100644 --- a/Controller.php +++ b/Controller.php @@ -107,9 +107,9 @@ class Controller extends ModuleAbstract implements WebInterface { /** @var Head $head */ $head = $response->get('Content')->getData('head'); - $head->addAsset(AssetType::JSLATE, $request->getUri()->getBase() . 'Modules/Draw/Controller.js'); - $head->addAsset(AssetType::JSLATE, $request->getUri()->getBase() . 'Modules/Draw/Models/DrawType.enum.js'); - $head->addAsset(AssetType::JSLATE, $request->getUri()->getBase() . 'Modules/Draw/Models/Editor.js'); + $head->addAsset(AssetType::JSLATE, '/Modules/Draw/Controller.js'); + $head->addAsset(AssetType::JSLATE, '/Modules/Draw/Models/DrawType.enum.js'); + $head->addAsset(AssetType::JSLATE, '/Modules/Draw/Models/Editor.js'); } /** diff --git a/Theme/Backend/draw-create.tpl.php b/Theme/Backend/draw-create.tpl.php index db5cf1d..930de58 100644 --- a/Theme/Backend/draw-create.tpl.php +++ b/Theme/Backend/draw-create.tpl.php @@ -21,7 +21,7 @@ echo $this->getData('nav')->render(); ?>