From 128f7947ed87bbf36a30e51588809263b8b7efdc Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Wed, 28 Sep 2022 15:57:19 +0200 Subject: Signin redirect ref --- pages/signin.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'pages') 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); } }); -- cgit v1.2.3-18-g5258