Skip to content

Commit

Permalink
Show message when a redirect is done.
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Jul 28, 2019
1 parent 9f7d118 commit 1f3e509
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions htdocs/core/lib/website.lib.php
Expand Up @@ -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
Expand Down

0 comments on commit 1f3e509

Please sign in to comment.