aboutsummaryrefslogtreecommitdiff
path: root/src/components/registration
diff options
context:
space:
mode:
authorMaxim Filippov <colixer@gmail.com>2018-12-10 01:21:52 +0300
committerMaxim Filippov <colixer@gmail.com>2018-12-10 01:21:52 +0300
commitae8f0f36d8944210e83c60a931ad14da4c5d4a67 (patch)
tree148da20f62281bd364694e695e33cf0a9e8abb4d /src/components/registration
parent3d968e31daf5c4f2c560730267abaea0b7f1fadc (diff)
Use "~" as a route namespace symbol
Diffstat (limited to 'src/components/registration')
-rw-r--r--src/components/registration/registration.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/registration/registration.js b/src/components/registration/registration.js
index b714c38e..0618ac6c 100644
--- a/src/components/registration/registration.js
+++ b/src/components/registration/registration.js
@@ -27,7 +27,7 @@ const registration = {
},
created () {
if ((!this.registrationOpen && !this.token) || this.signedIn) {
- this.$router.push('/p/main/all')
+ this.$router.push('/~/main/all')
}
},
computed: {
@@ -51,7 +51,7 @@ const registration = {
if (!this.$v.$invalid) {
try {
await this.signUp(this.user)
- this.$router.push('/p/main/friends')
+ this.$router.push('/~/main/friends')
} catch (error) {
console.warn('Registration failed: ' + error)
}