diff --git a/src/shared/hooks/useRedirectTo.js b/src/shared/hooks/useRedirectTo.js index 9f7af83..5d6a958 100644 --- a/src/shared/hooks/useRedirectTo.js +++ b/src/shared/hooks/useRedirectTo.js @@ -37,7 +37,7 @@ export const useRedirectTo = (urlPartType) => { return useCallback( (part) => { const index = order.indexOf(urlPartType); - if (index < 0) { + if (index < 0 || hash[urlPartType] === part) { return; }