Skip to content

Commit

Permalink
[com_content] - fix link when layout and association (#19681)
Browse files Browse the repository at this point in the history
  • Loading branch information
alikon authored and Michael Babker committed Mar 17, 2018
1 parent be07018 commit 30cb4d6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions components/com_content/helpers/route.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,14 @@ public static function getCategoryRoute($catid, $language = 0)
{
$link .= '&lang=' . $language;
}

$jinput = JFactory::getApplication()->input;
$layout = $jinput->get('layout');

if ($layout !== '')
{
$link .= '&layout=' . $layout;
}
}

return $link;
Expand Down

0 comments on commit 30cb4d6

Please sign in to comment.