Fix redirect paths

This commit is contained in:
Maxim Filippov 2018-12-06 20:23:47 +03:00
parent 54c6438b17
commit 7d5794b9fa
6 changed files with 9 additions and 9 deletions

View File

@ -32,7 +32,7 @@ const LoginForm = {
.then((result) => {
this.$store.commit('setToken', result.access_token)
this.$store.dispatch('loginUser', result.access_token)
this.$router.push('/main/friends')
this.$router.push('/p/main/friends')
})
})
}

View File

@ -11,7 +11,7 @@ const oac = {
}).then((result) => {
this.$store.commit('setToken', result.access_token)
this.$store.dispatch('loginUser', result.access_token)
this.$router.push('/main/friends')
this.$router.push('/p/main/friends')
})
}
}

View File

@ -27,7 +27,7 @@ const registration = {
},
created () {
if ((!this.registrationOpen && !this.token) || this.signedIn) {
this.$router.push('/main/all')
this.$router.push('/p/main/all')
}
},
computed: {
@ -51,7 +51,7 @@ const registration = {
if (!this.$v.$invalid) {
try {
await this.signUp(this.user)
this.$router.push('/main/friends')
this.$router.push('/p/main/friends')
} catch (error) {
console.warn('Registration failed: ' + error)
}

View File

@ -218,7 +218,7 @@ const UserSettings = {
.then((res) => {
if (res.status === 'success') {
this.$store.dispatch('logout')
this.$router.push('/main/all')
this.$router.push('/p/main/all')
} else {
this.deleteAccountError = res.error
}

View File

@ -12,8 +12,8 @@ const defaultState = {
logo: '/static/logo.png',
logoMask: true,
logoMargin: '.2em',
redirectRootNoLogin: '/main/all',
redirectRootLogin: '/main/friends',
redirectRootNoLogin: '/p/main/all',
redirectRootLogin: '/p/main/friends',
showInstanceSpecificPanel: false,
scopeOptionsEnabled: true,
formattingOptionsEnabled: false,

View File

@ -4,8 +4,8 @@
"logo": "/static/logo.png",
"logoMask": true,
"logoMargin": ".1em",
"redirectRootNoLogin": "/main/all",
"redirectRootLogin": "/main/friends",
"redirectRootNoLogin": "/p/main/all",
"redirectRootLogin": "/p/main/friends",
"chatDisabled": false,
"showInstanceSpecificPanel": false,
"scopeOptionsEnabled": false,