From 10beb50015da8b2f09d2fbe69b4c96bc603689ea Mon Sep 17 00:00:00 2001 From: saman222 Date: Mon, 14 Jun 2021 15:32:12 +0430 Subject: [PATCH] when we build link with ID and without Itemid, router's build method repeats siteview name twice in 'SEF' situation.like:mysite.com/index.php/component/componentname/siteviewname/siteviewname/id --- admin/compiler/joomla_3/router.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/compiler/joomla_3/router.php b/admin/compiler/joomla_3/router.php index 2f78f5de2..a14ccd0b2 100644 --- a/admin/compiler/joomla_3/router.php +++ b/admin/compiler/joomla_3/router.php @@ -56,7 +56,7 @@ class ###Component###Router extends JComponentRouterBase { $view = $query['view']; - if (empty($query['Itemid'])) + if (empty($query['Itemid']) && !(isset($view) && isset($query['id']) && ###ROUTER_BUILD_VIEWS###)) { $segments[] = $query['view']; }