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:
Ralf Becker 2014-02-19 15:08:51 +00:00
parent bd941f3601
commit 2f8b7064d8

View File

@ -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!"); throw new egw_exception_assertion_failed(__METHOD__."('".htmlspecialchars($url)."') can NOT redirect, output already started at $file line $line!");
} }
Header("Location: $url"); if ($GLOBALS['egw']->framework instanceof jdots_framework && !empty($link_app))
print("\n\n"); {
egw_framework::set_extra('egw', 'redirect', array($url, $link_app));
$GLOBALS['egw']->framework->render('');
}
else
{
Header("Location: $url");
print("\n\n");
}
} }
if ($do_flush) if ($do_flush)