diff --git a/packages/website/src/pages/tools/compare/_index.tsx b/packages/website/src/pages/tools/compare/_index.tsx index 104247bed..7dfda2113 100644 --- a/packages/website/src/pages/tools/compare/_index.tsx +++ b/packages/website/src/pages/tools/compare/_index.tsx @@ -103,6 +103,18 @@ function Content() { }); }, []); + useEffect(() => { + const search = new URLSearchParams(window.location.search); + + search.set('tanks', members.map((member) => member.tank.id).join(',')); + + window.history.replaceState( + {}, + '', + `${window.location.pathname}?${search.toString()}`, + ); + }, [members]); + return (