From 1f3e5096035c181f15529db684da4ed9351a7843 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 28 Jul 2019 21:24:42 +0200 Subject: [PATCH] Show message when a redirect is done. --- htdocs/core/lib/website.lib.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/htdocs/core/lib/website.lib.php b/htdocs/core/lib/website.lib.php index a4c187f2ffa..00716f6a3ab 100644 --- a/htdocs/core/lib/website.lib.php +++ b/htdocs/core/lib/website.lib.php @@ -339,6 +339,14 @@ function redirectToContainer($containerref, $containeraliasalt = '', $containeri } } + if (defined('USEDOLIBARREDITOR')) + { + print '
'; + print "This page contains dynamic code that make a redirect to '".$containerref."' in your current context. There is no preview for this page."; + print '
'; + exit; + } + if (defined('USEDOLIBARRSERVER')) // When page called from Dolibarr server { // Check new container exists