From 132e9a0df516b50c854178ccb726cf9d9dc514fa Mon Sep 17 00:00:00 2001
From: Pierre <397503+bemble@users.noreply.github.com>
Date: Mon, 30 May 2022 17:04:21 +0200
Subject: feat(auth): do not handle redirection in getConfig

It will be handled by connectivity checker
---
 src/App.vue | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

(limited to 'src/App.vue')

diff --git a/src/App.vue b/src/App.vue
index 515177e..a60c242 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -231,13 +231,7 @@ export default {
     },
     getConfig: function (path = "assets/config.yml") {
       return fetch(path).then((response) => {
-        if (response.redirected) {
-          // This allows to work with authentication proxies.
-          window.location.href = response.url;
-          return;
-        }
-
-        if (response.status == 404) {
+        if (response.status == 404 || response.redirected) {
           this.configNotFound = true;
           return {};
         }
-- 
cgit v1.2.3

