replace route on login

This commit is contained in:
Thomas Amland 2020-08-05 10:47:46 +02:00
parent 500e44fa81
commit 2c59e478c1

View File

@ -54,7 +54,7 @@ export default Vue.extend({
username: this.username,
server: this.server,
});
this.$router.push(this.returnTo);
this.$router.replace(this.returnTo);
} else {
this.showModal = true;
}
@ -74,7 +74,7 @@ export default Vue.extend({
username: this.username,
server: this.server,
});
this.$router.push(this.returnTo);
this.$router.replace(this.returnTo);
})
.catch(err => {
this.error = err;