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

This commit is contained in:
saman222 2021-06-14 15:32:12 +04:30
parent 130235e252
commit 10beb50015

View File

@ -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'];
}