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

@ -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)
}