diff --git a/src/components/settings_modal/settings_modal.js b/src/components/settings_modal/settings_modal.js index 27dab3ec..9a2df9b0 100644 --- a/src/components/settings_modal/settings_modal.js +++ b/src/components/settings_modal/settings_modal.js @@ -69,7 +69,7 @@ const SettingsModal = { this.$store.dispatch('closeSettingsModal') }, logout () { - this.$router.replace('/main/public') + this.$router.replace(this.$store.state.instance.redirectRootNoLogin || '/main/all') this.$store.dispatch('closeSettingsModal') this.$store.dispatch('logout') },