diff --git a/Admin/Install/Navigation.install.json b/Admin/Install/Navigation.install.json index 34c45ab..398d1d8 100644 --- a/Admin/Install/Navigation.install.json +++ b/Admin/Install/Navigation.install.json @@ -5,7 +5,7 @@ "type": 2, "subtype": 1, "name": "Wiki", - "uri": "{/base}/{/lang}/backend/wiki/dashboard?{?}", + "uri": "/{/lang}/backend/wiki/dashboard?{?}", "target": "self", "icon": null, "order": 50, @@ -19,7 +19,7 @@ "type": 3, "subtype": 1, "name": "Wiki", - "uri": "{/base}/{/lang}/backend/wiki/dashboard?{?}", + "uri": "/{/lang}/backend/wiki/dashboard?{?}", "target": "self", "icon": null, "order": 1, @@ -34,7 +34,7 @@ "type": 3, "subtype": 1, "name": "Create", - "uri": "{/base}/{/lang}/backend/wiki/doc/create?{?}", + "uri": "/{/lang}/backend/wiki/doc/create?{?}", "target": "self", "icon": null, "order": 5, @@ -49,7 +49,7 @@ "type": 3, "subtype": 1, "name": "Categories", - "uri": "{/base}/{/lang}/backend/wiki/category/list?{?}", + "uri": "/{/lang}/backend/wiki/category/list?{?}", "target": "self", "icon": null, "order": 5, diff --git a/Controller.php b/Controller.php index 58483f5..b958c84 100644 --- a/Controller.php +++ b/Controller.php @@ -108,7 +108,7 @@ class Controller extends ModuleAbstract implements WebInterface public function setUpBackend(RequestAbstract $request, ResponseAbstract $response, $data = null) { $head = $response->get('Content')->getData('head'); - $head->addAsset(AssetType::CSS, $request->getUri()->getBase() . 'Modules/Knowledgebase/Theme/Backend/styles.css'); + $head->addAsset(AssetType::CSS, '/Modules/Knowledgebase/Theme/Backend/styles.css'); } /** diff --git a/Theme/Backend/wiki-category-list.tpl.php b/Theme/Backend/wiki-category-list.tpl.php index 35e1e3a..1089590 100644 --- a/Theme/Backend/wiki-category-list.tpl.php +++ b/Theme/Backend/wiki-category-list.tpl.php @@ -33,7 +33,7 @@ echo $this->getData('nav')->render(); $value) : $c++; - $url = \phpOMS\Uri\UriFactory::build('{/base}/{/lang}/backend/admin/account/settings?{?}&id=' . $value->getId()); ?> + $url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/admin/account/settings?{?}&id=' . $value->getId()); ?> printHtml($value->getId()); ?> printHtml($value->getName()); ?> diff --git a/Theme/Backend/wiki-dashboard.tpl.php b/Theme/Backend/wiki-dashboard.tpl.php index d521b47..d7cff5d 100644 --- a/Theme/Backend/wiki-dashboard.tpl.php +++ b/Theme/Backend/wiki-dashboard.tpl.php @@ -7,7 +7,7 @@ echo $this->getData('nav')->render(); ?>
- printHtml($category->getName()); ?> + printHtml($category->getName()); ?>