summaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
Diffstat (limited to 'pages')
-rw-r--r--pages/signin.vue7
1 files changed, 6 insertions, 1 deletions
diff --git a/pages/signin.vue b/pages/signin.vue
index c0a4342..455ef68 100644
--- a/pages/signin.vue
+++ b/pages/signin.vue
@@ -47,6 +47,7 @@ export default {
},
methods: {
save(event) {
+ const ref = this.$route.query["ref"];
event.preventDefault();
const f = this.form;
@@ -61,7 +62,11 @@ export default {
} else {
this.$toast.success("Logged successfully");
setTimeout(() => {
- window.location.href = "/";
+ if (ref) {
+ window.location.href = ref;
+ } else {
+ window.location.href = "/";
+ }
}, 1000);
}
});