Description: Category article link -> login form -> login SUCCESS-> return URL.
Step edit:
#1. Update file components\com_users\views\login\tmpl\default_login.php
Code
<input type="hidden" name="return" value="<?php echo base64_encode($this->params->get('login_redirect_url', $this->form->getValue('return'))); ?>" />
Replace
<input type="hidden" name="return" value="<?php echo JRequest::getVar('return'); ?>" />
#2. Update file components\com_users\controllers\user.php
Remove code:
// Don't redirect to an external URL.
if (!JUri::isInternal($data['return']))
{
$data['return'] = '';
}
Thứ Bảy, 23 tháng 1, 2016
Đăng ký:
Bài đăng (Atom)