Skip to content

Commit

Permalink
COM-1043 Using router.replace instead of push
Browse files Browse the repository at this point in the history
  • Loading branch information
jctrebalag committed Apr 3, 2020
1 parent 763f98d commit 3c10b95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/mixins/logInMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const logInMixin = {
await this.$store.dispatch('main/getLoggedUser', this.$q.cookies.get('user_id'));

if (this.$route.query.from) return this.$router.replace({ path: this.$route.query.from });
return this.$router.push('/').catch(e => {});
return this.$router.replace('/').catch(e => {});
},
},
}

0 comments on commit 3c10b95

Please sign in to comment.