chore(router): disable using replace strategy when closing popups or subpages (#4838)

This commit is contained in:
Zeke Zhang 2024-07-07 19:27:56 +08:00 committed by GitHub
parent 07c3428b9e
commit f1a564f074
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -231,7 +231,7 @@ export const usePagePopup = () => {
if (getStoredPopupContext(currentPopupUid)) {
navigate(-1);
} else {
navigate(withSearchParams(removeLastPopupPath(location.pathname)), { replace: true });
navigate(withSearchParams(removeLastPopupPath(location.pathname)));
}
},
[navigate, location, isPopupVisibleControlledByURL],