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 53e1f8e commit 9bdc33e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions components/com_content/views/article/tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,10 @@
<?php $menu = JFactory::getApplication()->getMenu(); ?>
<?php $active = $menu->getActive(); ?>
<?php $itemId = $active->id; ?>
<?php $link = JRoute::_('index.php?option=com_users&view=login&Itemid=' . $itemId); ?>
<?php $returnURL = JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catid, $this->item->language)); ?>
<?php $fullURL = new JUri($link); ?>
<?php $fullURL->setVar('return', base64_encode($returnURL)); ?>
<?php $link = new JUri(JRoute::_('index.php?option=com_users&view=login&Itemid=' . $itemId, false)); ?>
<?php $link->setVar('return', base64_encode(JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catid, $this->item->language), false))); ?>
<p class="readmore">
<a href="<?php echo $fullURL; ?>" class="register">
<a href="<?php echo $link; ?>" class="register">
<?php $attribs = json_decode($this->item->attribs); ?>
<?php
if ($attribs->alternative_readmore == null) :
Expand Down

0 comments on commit 9bdc33e

Please sign in to comment.