summaryrefslogtreecommitdiff
path: root/src/lib/auth/components
diff options
context:
space:
mode:
authorHATEC\SPVDEV001 <tri.susilo@altama.co.id>2023-10-16 11:28:34 +0700
committerHATEC\SPVDEV001 <tri.susilo@altama.co.id>2023-10-16 11:28:34 +0700
commit954be13467b02889414db600fee8e8b7b76cc2aa (patch)
tree4331a21338b2ac33b6f7a2911e61365b8950c33c /src/lib/auth/components
parentca445ab4e089b98fb67b004a6cb4a8968f471ae4 (diff)
parent6aa5fa70cf5ccd2825e5657ec1a90e370dea3bcf (diff)
Merge branch 'CR/UI' of https://bitbucket.org/altafixco/next-indoteknik into CR/UI
Diffstat (limited to 'src/lib/auth/components')
-rw-r--r--src/lib/auth/components/IsAuth.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/auth/components/IsAuth.jsx b/src/lib/auth/components/IsAuth.jsx
index a32e648c..1948ae0c 100644
--- a/src/lib/auth/components/IsAuth.jsx
+++ b/src/lib/auth/components/IsAuth.jsx
@@ -8,7 +8,7 @@ const IsAuth = ({ children }) => {
useEffect(() => {
if (!getAuth() && router.pathname != '/login') {
- router.replace(`/login?next=${router.asPath}`)
+ router.replace(`/login?next=${encodeURIComponent(router.asPath)}`)
} else {
setResponse(children)
}