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 48915c5 commit 024916d
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,10 @@
$menu = JFactory::getApplication()->getMenu();
$active = $menu->getActive();
$itemId = $active->id;
$link = JRoute::_('index.php?option=com_users&view=login&Itemid='.$itemId);
$returnURL = JRoute::_(ContentHelperRoute::getArticleRoute($article->slug, $article->catid, $article->language));
$fullURL = new JUri($link);
$fullURL->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($article->slug, $article->catid, $article->language), false)));
?>
<a href="<?php echo $fullURL; ?>" class="register">
<a href="<?php echo $link; ?>" class="register">
<?php echo JText::_('COM_CONTENT_REGISTER_TO_READ_MORE'); ?></a>
</td>
<?php endif; ?>
Expand Down

0 comments on commit 024916d

Please sign in to comment.