Skip to content

Commit

Permalink
JRoute false to avoid wrong redirect when SEF off
Browse files Browse the repository at this point in the history
  • Loading branch information
bertmert committed May 23, 2015
1 parent 9f9e8f8 commit 0c606b9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions components/com_content/views/featured/tmpl/default_item.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,8 @@
$menu = JFactory::getApplication()->getMenu();
$active = $menu->getActive();
$itemId = $active->id;
$link1 = JRoute::_('index.php?option=com_users&view=login&Itemid=' . $itemId);
$returnURL = JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catid, $this->item->language));
$link = new JUri($link1);
$link->setVar('return', base64_encode($returnURL));
$link = new JUri(JRoute::_('index.php?option=com_users&view=login&Itemid=' . $itemId, false));
$link->setVar('return', base64_encode(JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catid, $this->item->language), false)));
endif; ?>

<?php echo JLayoutHelper::render('joomla.content.readmore', array('item' => $this->item, 'params' => $params, 'link' => $link)); ?>
Expand Down

0 comments on commit 0c606b9

Please sign in to comment.