From 470192aabd4385581c3736da57233359fbf97165 Mon Sep 17 00:00:00 2001 From: SimonGschnell Date: Mon, 23 Sep 2024 15:14:31 +0200 Subject: [PATCH] fixes some bugs in the View/Entry.php for the Menu --- application/views/templates/CISHTML-Menu/Entry.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/application/views/templates/CISHTML-Menu/Entry.php b/application/views/templates/CISHTML-Menu/Entry.php index bd66fce37..522d8008d 100755 --- a/application/views/templates/CISHTML-Menu/Entry.php +++ b/application/views/templates/CISHTML-Menu/Entry.php @@ -22,6 +22,8 @@ switch ($entry->template_kurzbz) { if (strpos($url, '../cms/news.php') === 0) $url = site_url('/CisHtml/Cms/news' . substr($url, 15)); + if (strpos($url, '../index.ci.php') === 0) + $url = site_url() . str_replace("../index.ci.php","",$url); if (strpos($url, '../') === 0) $url = APP_ROOT . substr($url, 3); } @@ -37,7 +39,8 @@ switch ($entry->template_kurzbz) { $this->load->view('templates/CISHTML-Menu/EntryBase', [ 'entry' => $entry, 'menu_id' => $menu_id, - 'link' => site_url('/CisHtml/Cms/content/' . $entry->content_id) + 'link' => site_url('/CisHtml/Cms/content/' . $entry->content_id), + 'target' => '' ]); break; }