]> git.immae.eu Git - github/bastienwirtz/homer.git/blobdiff - src/App.vue
Merge pull request #448 from bemble/main
[github/bastienwirtz/homer.git] / src / App.vue
index c58fca1096726f8f8d13196def444547b983dccb..664867f219a24a3d71346d49ada44219149d6ef3 100644 (file)
@@ -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 {};
         }