59
Try this and see if it works for you k.
Open user.php and look for the line (roughly line 52):
if (isset($_GET['xoops_redirect'])) {
$xoopsTpl->assign('redirect_page', htmlspecialchars(trim($_GET['xoops_redirect']), ENT_QUOTES));
}
and change it to this:
if ( isset( $_GET['xoops_redirect'] ) ) {
$xoopsTpl->assign( 'redirect_page', htmlspecialchars( trim( $_GET['xoops_redirect'] ), ENT_QUOTES ) );
} else if ( isset( $_SERVER['REQUEST_URI'] ) ) {
$xoopsTpl->assign( 'redirect_page', htmlspecialchars( xoops_getenv( 'REQUEST_URI' ), ENT_QUOTES ) );
}
Also, in /include/checklogin.php, look for line 103:
$url .= $_POST['xoops_redirect'];
and change it to:
$url .= str_replace(XOOPS_URL, '', $_POST['xoops_redirect']);
It's not perfect but it should do what you want........ hopefully
John