From: Pierre <397503+bemble@users.noreply.github.com> Date: Mon, 30 May 2022 15:04:21 +0000 (+0200) Subject: feat(auth): do not handle redirection in getConfig X-Git-Tag: v22.06.1~5^2~1 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=132e9a0df516b50c854178ccb726cf9d9dc514fa;p=github%2Fbastienwirtz%2Fhomer.git feat(auth): do not handle redirection in getConfig It will be handled by connectivity checker --- 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 {}; }