diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2018-12-12 14:34:48 -0500 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2018-12-12 14:34:48 -0500 |
| commit | 876e342d65038b2e33ec5f7d76433a0459d0d3b4 (patch) | |
| tree | 51c5b1bd12b8b5743c7ab15564aa2f94c9bab8d3 /www/js/DataModel.js | |
| parent | 0ba365db07c8446b7b23670692284a4aa6a15296 (diff) | |
#716 add view=console to avoid redirect
Diffstat (limited to 'www/js/DataModel.js')
| -rw-r--r-- | www/js/DataModel.js | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/www/js/DataModel.js b/www/js/DataModel.js index 86efb329..adb6308e 100644 --- a/www/js/DataModel.js +++ b/www/js/DataModel.js @@ -210,10 +210,6 @@ angular.module('zmApp.controllers') * @returns */ function setCordovaHttpOptions() { - - debug ("Cordova HTTP: disabling redirect till bug in library is fixed"); - cordova.plugin.http.disableRedirect(true, - function(s) {debug ("redirect disabled");}, function (e) {debug ("redirect disable FAILED");}); if (loginData.isUseBasicAuth) { debug("Cordova HTTP: configuring basic auth"); cordova.plugin.http.useBasicAuth(loginData.basicAuthUser, loginData.basicAuthPassword); @@ -813,7 +809,7 @@ angular.module('zmApp.controllers') { log("Adding to chain stack: " + tLd.serverName + ">" + tLd.url); chainURLs.push({ - url: tLd.url + "/index.php", + url: tLd.url + "/index.php?view=console", server: tLd.serverName }); log("Fallback of " + tLd.serverName + " is " + tLd.fallbackConfiguration); @@ -3064,7 +3060,7 @@ angular.module('zmApp.controllers') method: 'POST', timeout: 7000, //withCredentials: true, - url: loginData.url + '/index.php', + url: loginData.url + '/index.php?view=console', headers: { 'Content-Type': 'application/x-www-form-urlencoded', 'Accept': 'application/json', |
