diff --git a/application/views/templates/CISHTML-Menu/Entry.php b/application/views/templates/CISHTML-Menu/Entry.php index 2f9c7e60f..35246b07b 100644 --- a/application/views/templates/CISHTML-Menu/Entry.php +++ b/application/views/templates/CISHTML-Menu/Entry.php @@ -20,6 +20,8 @@ switch ($entry->template_kurzbz) { if ($xml->getElementsByTagName('target')->item(0)) $target = $xml->getElementsByTagName('target')->item(0)->nodeValue; + if (strpos($url, '../cms/news.php') === 0) + $url = APP_ROOT . 'cis.php/CisHtml/Cms/news' . substr($url, 15); if (strpos($url, '../') === 0) $url = APP_ROOT . substr($url, 3); } @@ -34,7 +36,7 @@ switch ($entry->template_kurzbz) { break; } default: { - $this->load->view('templates/CISHTML-Menu/EntryBase', ['entry' => $entry, 'menu_id' => $menu_id, 'link' => APP_ROOT . 'index.ci.php/CisHtml/Cms/content/' . $entry->content_id]); + $this->load->view('templates/CISHTML-Menu/EntryBase', ['entry' => $entry, 'menu_id' => $menu_id, 'link' => APP_ROOT . 'cis.php/CisHtml/Cms/content/' . $entry->content_id]); break; } } diff --git a/cis.php b/cis.php index fbb182185..725a4017f 100644 --- a/cis.php +++ b/cis.php @@ -190,6 +190,7 @@ switch (ENVIRONMENT) * */ // $assign_to_config['name_of_config_item'] = 'value of config item'; +$assign_to_config['index_page'] = 'cis.php'; diff --git a/public/js/components/Cis/Menu/Entry.js b/public/js/components/Cis/Menu/Entry.js index 0299e00a4..93bfc2819 100644 --- a/public/js/components/Cis/Menu/Entry.js +++ b/public/js/components/Cis/Menu/Entry.js @@ -23,6 +23,7 @@ export default { return ''; // TODO(chris): replace get params url = url.childNodes[0].nodeValue + ""; + url = url.replace(/^\.\.\/cms\/news\.php/, FHC_JS_DATA_STORAGE_OBJECT.app_root + FHC_JS_DATA_STORAGE_OBJECT.ci_router + '/CisVue/Cms/news'); url = url.replace(/^\.\.\//, FHC_JS_DATA_STORAGE_OBJECT.app_root); return url; }