mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-25 16:19:00 +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,8 +495,16 @@ class egw extends egw_minimal
|
||||
{
|
||||
throw new egw_exception_assertion_failed(__METHOD__."('".htmlspecialchars($url)."') can NOT redirect, output already started at $file line $line!");
|
||||
}
|
||||
Header("Location: $url");
|
||||
print("\n\n");
|
||||
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