We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1defac4 commit 8a08583Copy full SHA for 8a08583
src/hooks/useRedirect.tsx
@@ -17,7 +17,8 @@ export const useRedirect = (
17
18
useEffect(() => {
19
// If redirect is disabled or the url is already in the callback urls then do not redirect
20
- if (!enable || callBackUrls.current.includes(url)) return;
+ if (!enable || callBackUrls.current.includes(url) || url === currentPath)
21
+ return;
22
23
const performRedirect = () => {
24
if (!isRedirecting.current) {
0 commit comments