aboutsummaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
Diffstat (limited to 'src/components')
-rw-r--r--src/components/login_form/login_form.js2
-rw-r--r--src/components/oauth_callback/oauth_callback.js2
-rw-r--r--src/components/registration/registration.js4
-rw-r--r--src/components/user_settings/user_settings.js2
4 files changed, 5 insertions, 5 deletions
diff --git a/src/components/login_form/login_form.js b/src/components/login_form/login_form.js
index 81426b44..013222a8 100644
--- a/src/components/login_form/login_form.js
+++ b/src/components/login_form/login_form.js
@@ -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({name: 'friends'})
})
})
}
diff --git a/src/components/oauth_callback/oauth_callback.js b/src/components/oauth_callback/oauth_callback.js
index 18e24159..e3d45ee1 100644
--- a/src/components/oauth_callback/oauth_callback.js
+++ b/src/components/oauth_callback/oauth_callback.js
@@ -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({name: 'friends'})
})
}
}
diff --git a/src/components/registration/registration.js b/src/components/registration/registration.js
index dd8e6e5d..ab6cd64d 100644
--- a/src/components/registration/registration.js
+++ b/src/components/registration/registration.js
@@ -28,7 +28,7 @@ const registration = {
},
created () {
if ((!this.registrationOpen && !this.token) || this.signedIn) {
- this.$router.push('/~/main/all')
+ this.$router.push({name: 'root'})
}
this.setCaptcha()
@@ -58,7 +58,7 @@ const registration = {
if (!this.$v.$invalid) {
try {
await this.signUp(this.user)
- this.$router.push('/~/main/friends')
+ this.$router.push({name: 'friends'})
} catch (error) {
console.warn('Registration failed: ' + error)
}
diff --git a/src/components/user_settings/user_settings.js b/src/components/user_settings/user_settings.js
index d5fac17d..dcce275a 100644
--- a/src/components/user_settings/user_settings.js
+++ b/src/components/user_settings/user_settings.js
@@ -257,7 +257,7 @@ const UserSettings = {
.then((res) => {
if (res.status === 'success') {
this.$store.dispatch('logout')
- this.$router.push('/~/main/all')
+ this.$router.push({name: 'root'})
} else {
this.deleteAccountError = res.error
}