From 8a3b6609694ae286da1ebc5025ec8dc728606931 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 1 Dec 2016 23:44:50 +0100 Subject: [PATCH] only reload on errors when logged in Signed-off-by: Robin Appelman --- core/js/js.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/js/js.js b/core/js/js.js index e2b8731c877..972f0e63144 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -776,7 +776,7 @@ var OCP = {}, return; } - if (_.contains([302, 303, 307, 401], xhr.status)) { + if (_.contains([302, 303, 307, 401], xhr.status) && OC.currentUser) { // sometimes "beforeunload" happens later, so need to defer the reload a bit setTimeout(function() { if (!self._userIsNavigatingAway && !self._reloadCalled) {