Hello,
In www/components/com_aworewards/aworewards.php, around line 37 is this:
<?php
$redirect_url = version_compare( JVERSION, '1.6.0', 'ge' )
? 'index.php?option=com_users&view=login'
: 'index.php?option=com_user&view=login'
;
?>
Change it to this:
<?php
$Itemid = JRequest::getVar('Itemid');
$redirect_url = version_compare( JVERSION, '1.6.0', 'ge' )
? 'index.php?option=com_users&view=login&Itemid='.$Itemid
: 'index.php?option=com_user&view=login&Itemid='.$Itemid
;
?>
And in www/components/com_aworewards/controller.php, around line 50 is this:
<?php
if(!empty($errors)) {
JFactory::getApplication()->enqueueMessage($errors, 'error');
$this->setRedirect('index.php?option=com_aworewards&view=credit');
}
else $this->setRedirect('index.php?option=com_aworewards&view=credit', JText::_( 'COM_AWOREWARDS_MSG_ITEM_SAVE' ));
?>
Change it to this:
<?php
$Itemid = JRequest::getVar('Itemid');
if(!empty($errors)) {
JFactory::getApplication()->enqueueMessage($errors, 'error');
$this->setRedirect('index.php?option=com_aworewards&view=credit&Itemid='.$Itemid);
}
else $this->setRedirect('index.php?option=com_aworewards&view=credit&Itemid='.$Itemid, JText::_( 'COM_AWOREWARDS_MSG_ITEM_SAVE' ));
?>
That should fix both