diff --git a/src/hooks/useRedirect.tsx b/src/hooks/useRedirect.tsx index 0a67082b..90edd900 100644 --- a/src/hooks/useRedirect.tsx +++ b/src/hooks/useRedirect.tsx @@ -17,7 +17,8 @@ export const useRedirect = ( useEffect(() => { // If redirect is disabled or the url is already in the callback urls then do not redirect - if (!enable || callBackUrls.current.includes(url)) return; + if (!enable || callBackUrls.current.includes(url) || url === currentPath) + return; const performRedirect = () => { if (!isRedirecting.current) {