stop redirection loop

This commit is contained in:
Ralf Becker 2015-05-01 16:34:48 +00:00
parent f4e5718041
commit 1f6c2e0de0

View File

@ -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";
}