Show message when a redirect is done.

This commit is contained in:
Laurent Destailleur 2019-07-28 21:24:42 +02:00
parent 9f7d118f6f
commit 1f3e509603

View File

@ -339,6 +339,14 @@ function redirectToContainer($containerref, $containeraliasalt = '', $containeri
}
}
if (defined('USEDOLIBARREDITOR'))
{
print '<div class="margintoponly marginleftonly">';
print "This page contains dynamic code that make a redirect to '".$containerref."' in your current context. There is no preview for this page.";
print '</div>';
exit;
}
if (defined('USEDOLIBARRSERVER')) // When page called from Dolibarr server
{
// Check new container exists