From bdf5c436dd2532d9243d15bebd2f7b1cac94144a Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 1 May 2015 16:34:28 +0000 Subject: [PATCH] stop redirection loop --- phpgwapi/js/jsapi/egw.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/js/jsapi/egw.js b/phpgwapi/js/jsapi/egw.js index ccb1e64a5b..46388f6697 100644 --- a/phpgwapi/js/jsapi/egw.js +++ b/phpgwapi/js/jsapi/egw.js @@ -124,7 +124,7 @@ if (debug) console.log('found framework object in top'); } // if framework not found, but requested to check for it, redirect to cd=yes to create it - else if (egw_script.getAttribute('data-check-framework')) + else if (egw_script.getAttribute('data-check-framework') && !window.location.search.match(/[&?]cd=/)) { window.location.search += window.location.search ? "&cd=yes" : "?cd=yes"; }