forked from joomla/Component-Builder
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:
parent
130235e252
commit
10beb50015
@ -56,7 +56,7 @@ class ###Component###Router extends JComponentRouterBase
|
|||||||
{
|
{
|
||||||
$view = $query['view'];
|
$view = $query['view'];
|
||||||
|
|
||||||
if (empty($query['Itemid']))
|
if (empty($query['Itemid']) && !(isset($view) && isset($query['id']) && ###ROUTER_BUILD_VIEWS###))
|
||||||
{
|
{
|
||||||
$segments[] = $query['view'];
|
$segments[] = $query['view'];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user