http%3A%2F%2Fwww.mywebsite.com%2Findex.php%2Flocal
http://www.mywebsite.com/index.php/local
$user = JFactory::getUser();
$jLoginUrl = $helper->getLoginRedirect('jlogin');
$jLogoutUrl = $helper->getLoginRedirect('jlogout');
//new code from here - need to 'undo' base64_encode
$camjLogoutUrl = base64_decode($jLogoutUrl);
// now do urldecode to replace any %xx character sequences with singe equivalent character, harmless if there are none
$camjLogoutUrl2 = urldecode($camjLogoutUrl);
// uncomment line below if you want to see what is happening
//echo "logout1-$camjLogoutUrl-<br />logout2-$camjLogoutUrl2-<br />";
// now re encode in base64
$jLogoutUrl = base64_encode($camjLogoutUrl2);
// end of extra code
$registerType = $params->get('register_type');
$forgotLink = '';
SCLogin module already has some magic in it to take care of this situation. When you set the Logout redirection to 'same page', we do a check to see if the current page is for Registered users.. if so, we change the logout redirection to the home page automatically.This is because I could not fathom out how to resolve the problem when using logout return to same when the page will not exist for access when I have logged out
http://www.mysite.com/index.php/component/users/?view=login
Join our newsletter to get alerts for Joomla releases, tips and tricks and extension updates.