mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-18 12:41:10 +01:00
stop redirection loop
This commit is contained in:
parent
e69df78ab8
commit
bdf5c436dd
@ -124,7 +124,7 @@
|
|||||||
if (debug) console.log('found framework object in top');
|
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
|
// 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";
|
window.location.search += window.location.search ? "&cd=yes" : "?cd=yes";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user