diff --git a/Admin/Install/Navigation.install.json b/Admin/Install/Navigation.install.json index 0e47048..5aece23 100644 --- a/Admin/Install/Navigation.install.json +++ b/Admin/Install/Navigation.install.json @@ -5,7 +5,7 @@ "type": 1, "subtype": 1, "name": "Calendar", - "uri": "{/base}/{/lang}/backend/calendar/dashboard?{?}", + "uri": "/{/lang}/backend/calendar/dashboard?{?}", "target": "self", "icon": "fa fa-calendar", "order": 10, @@ -20,7 +20,7 @@ "type": 2, "subtype": 1, "name": "Calendar", - "uri": "{/base}/{/lang}/backend/calendar/dashboard?{?}", + "uri": "/{/lang}/backend/calendar/dashboard?{?}", "target": "self", "icon": null, "order": 30, diff --git a/Controller.php b/Controller.php index 8489bfc..fc92d97 100644 --- a/Controller.php +++ b/Controller.php @@ -114,7 +114,7 @@ class Controller extends ModuleAbstract implements WebInterface /** @var Head $head */ $head = $response->get('Content')->getData('head'); - $head->addAsset(AssetType::CSS, $request->getUri()->getBase() . 'Modules/Calendar/Theme/Backend/css/styles.css'); + $head->addAsset(AssetType::CSS, '/Modules/Calendar/Theme/Backend/css/styles.css'); $view->setTemplate('/Modules/Calendar/Theme/Backend/calendar-dashboard'); $view->addData('nav', $this->app->moduleManager->get('Navigation')->createNavigationMid(1001201001, $request, $response)); @@ -143,7 +143,7 @@ class Controller extends ModuleAbstract implements WebInterface { /** @var Head $head */ $head = $response->get('Content')->getData('head'); - $head->addAsset(AssetType::CSS, $request->getUri()->getBase() . 'Modules/Calendar/Theme/Backend/css/styles.css'); + $head->addAsset(AssetType::CSS, '/Modules/Calendar/Theme/Backend/css/styles.css'); $view = new View($this->app, $request, $response); $view->setTemplate('/Modules/Calendar/Theme/Backend/dashboard-calendar'); diff --git a/Theme/Backend/calendar-dashboard.tpl.php b/Theme/Backend/calendar-dashboard.tpl.php index c349293..b9fcf39 100644 --- a/Theme/Backend/calendar-dashboard.tpl.php +++ b/Theme/Backend/calendar-dashboard.tpl.php @@ -5,8 +5,8 @@ $calendar = $this->getData('calendar');