Compare commits

..
1 Commits
Author SHA1 Message Date
Eduard Gert 8a08583225 Do not redirect on same page (#471) 2025-06-05 19:30:25 +02:00
+2 -1
View File
@@ -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) {