summaryrefslogtreecommitdiff
path: root/src/core/utils/whatsappUrl.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/utils/whatsappUrl.js')
-rw-r--r--src/core/utils/whatsappUrl.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/utils/whatsappUrl.js b/src/core/utils/whatsappUrl.js
index c5959ed6..6c354924 100644
--- a/src/core/utils/whatsappUrl.js
+++ b/src/core/utils/whatsappUrl.js
@@ -1,9 +1,9 @@
import { getAuth } from "./auth"
-const whatsappUrl = (template = 'default', payload) => {
+const whatsappUrl = (template = 'default', payload, urlPath = '') => {
let user = getAuth()
if(!user){
- return '/login'
+ return `/login?next=${urlPath}`
}
let parentName = user.parentName || '-'
let url = 'https://wa.me/628128080622'