From 1f6c2e0de0ad7b786aedf844a2fc02f28731610e Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 1 May 2015 16:34:48 +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 41914670a3..b1ca655d9d 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"; }