mirror of
https://github.com/KevinMidboe/seasoned.git
synced 2026-03-11 03:49:07 +00:00
Try improve history navigation by pushing popup changes
This commit is contained in:
@@ -23,7 +23,12 @@ const updateQueryParams = (id = null, type = null) => {
|
||||
window.location.port ? `:${window.location.port}` : ""
|
||||
}${window.location.pathname}${params.toString().length ? `?${params}` : ""}`;
|
||||
|
||||
window.history.replaceState({}, "search", url);
|
||||
if (!window.preventPushState) {
|
||||
window.history.pushState({}, "search", url);
|
||||
window.preventPushState = false;
|
||||
} else {
|
||||
window.history.replaceState({}, "search", url);
|
||||
}
|
||||
};
|
||||
|
||||
export default {
|
||||
|
||||
Reference in New Issue
Block a user