do NOT redirect, but set top.location, as this works in framed template too

This commit is contained in:
Ralf Becker 2010-06-07 06:54:07 +00:00
parent 12b26106ca
commit b5ade8635a

View File

@ -334,7 +334,9 @@ class egw extends egw_minimal
if (egw_session::get_sessionid()) $redirect .= 'cd=10&';
}
if ($relpath) $redirect .= 'phpgw_forward='.urlencode($relpath.(!empty($query) ? '?'.$query : ''));
Header('Location: '.$GLOBALS['egw_info']['server']['webserver_url'].$redirect);
//Header('Location: '.$GLOBALS['egw_info']['server']['webserver_url'].$redirect);
// do NOT redirect, but set top.location, as this works in framed template too
echo "<html>\n<head>\n<script type='text/javascript'>top.location='{$GLOBALS['egw_info']['server']['webserver_url']}$redirect';\n</script></head>\n";
exit;
}
}