Keep history
This commit is contained in:
@@ -37,6 +37,6 @@ export const useUrlSync = () => {
|
|||||||
if (articleId !== null) {
|
if (articleId !== null) {
|
||||||
targetUrl += `/articles/${articleId}`;
|
targetUrl += `/articles/${articleId}`;
|
||||||
}
|
}
|
||||||
navigate(targetUrl, { replace: true });
|
navigate(targetUrl);
|
||||||
}, [navigate, celexId, articleId]); // Only sync URL when Zustand changes
|
}, [navigate, celexId, articleId]); // Only sync URL when Zustand changes
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user