fixed homepage redirection when homepage is disabled

This commit is contained in:
Čarodej
2022-05-10 09:53:13 +02:00
parent 73c84075c5
commit 209667f55e
6 changed files with 26 additions and 12 deletions

View File

@@ -131,6 +131,11 @@ export default {
this.isLoaded = true
})
}
// Go to sign in page if homepage is disabled
if (!this.$root.$data.config.allowHomepage && window.location.pathname === '/') {
this.$router.push({ name: 'SignIn' })
}
},
created() {
if (this.$isWindows()) {