Verified Commit 0a62b128 authored by kPherox's avatar kPherox

Use router name instead path for some `router.replace`

parent e82b8979
Pipeline #27444 passed with stages
in 9 minutes and 4 seconds
......@@ -114,7 +114,7 @@ export default {
window.scrollTo(0, 0)
},
logout () {
this.$router.replace('/main/public')
this.$router.replace({ name: 'public-timeline' })
this.$store.dispatch('logout')
},
onSearchBarToggled (hidden) {
......
......@@ -57,7 +57,7 @@ const MobileNav = {
window.scrollTo(0, 0)
},
logout () {
this.$router.replace('/main/public')
this.$router.replace({ name: 'public-timeline' })
this.$store.dispatch('logout')
},
markNotificationsAsSeen () {
......
......@@ -93,7 +93,7 @@ const SecurityTab = {
},
logout () {
this.$store.dispatch('logout')
this.$router.replace('/')
this.$router.replace({ name: 'root' })
},
revokeToken (id) {
if (window.confirm(`${this.$i18n.t('settings.revoke_token')}?`)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment