diff options
| author | HATEC\SPVDEV001 <tri.susilo@altama.co.id> | 2023-09-02 10:36:41 +0700 |
|---|---|---|
| committer | HATEC\SPVDEV001 <tri.susilo@altama.co.id> | 2023-09-02 10:36:41 +0700 |
| commit | bca256dfc413400a6c17ca189a8f31a15d82473a (patch) | |
| tree | 74664e261e12af54171753d24c8b3985acb836e6 /src/core/utils/whatsappUrl.js | |
| parent | 96e59b7af6895f82ac005d60b65084bd5ec2d01f (diff) | |
button wa jika sudah login redirect ke halaman sebelumnya
Diffstat (limited to 'src/core/utils/whatsappUrl.js')
| -rw-r--r-- | src/core/utils/whatsappUrl.js | 4 |
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' |
