From b3187d7f88ea72349cc273e54f85add42861a13b Mon Sep 17 00:00:00 2001 From: Grzegorz Leoniec Date: Mon, 26 Nov 2018 11:19:45 +0100 Subject: [PATCH] added correct login rewrite --- pages/login.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/login.vue b/pages/login.vue index 44a9108c8..9084163f2 100644 --- a/pages/login.vue +++ b/pages/login.vue @@ -92,7 +92,7 @@ export default { try { await this.$store.dispatch('auth/login', { ...this.form }) this.$toast.success('You are logged in!') - this.$router.replace('/') + this.$router.replace(this.$route.query.path || '/') } catch (err) { this.$toast.error(err.message) }