mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:38 +01:00
allow to send a redirect from server-side via client-side egw.link_handler(url, app) allowing to specify which tab to use and a top-level (ajax=true) url
This commit is contained in:
parent
bd941f3601
commit
2f8b7064d8
@ -495,9 +495,17 @@ class egw extends egw_minimal
|
||||
{
|
||||
throw new egw_exception_assertion_failed(__METHOD__."('".htmlspecialchars($url)."') can NOT redirect, output already started at $file line $line!");
|
||||
}
|
||||
if ($GLOBALS['egw']->framework instanceof jdots_framework && !empty($link_app))
|
||||
{
|
||||
egw_framework::set_extra('egw', 'redirect', array($url, $link_app));
|
||||
$GLOBALS['egw']->framework->render('');
|
||||
}
|
||||
else
|
||||
{
|
||||
Header("Location: $url");
|
||||
print("\n\n");
|
||||
}
|
||||
}
|
||||
|
||||
if ($do_flush)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user