summaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2022-09-28 15:57:19 +0200
committerSanto Cariotti <santo@dcariotti.me>2022-09-28 15:57:19 +0200
commit128f7947ed87bbf36a30e51588809263b8b7efdc (patch)
treedbbc1e1d15a220e72b23c1b8c68564199471a1d1 /pages
parent9d63a15e7b6f85d057300e6f7c8c04618dc761e4 (diff)
Signin redirect ref
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);
}
});