feat: use router.replace for project filters to prevent history pollution (#5378)

* fix(navigation): use replaceState for project filters to prevent history pollution

* fix: add replace prop to NavTabs and enable it on project and discover pages

* style: run pnpm run fix on affected files

* enable NavTabs replace prop on collection, user, and org pages

---------

Co-authored-by: Calum H. (IMB11) <contact@cal.engineer>
This commit is contained in:
Mingxuan Ding
2026-03-10 04:09:44 +08:00
committed by GitHub
parent 4cfac2c8a2
commit 5a51a755eb
6 changed files with 37 additions and 27 deletions

View File

@@ -283,7 +283,7 @@
</div>
<div class="normal-page__content">
<div v-if="navLinks.length > 2" class="mb-4 max-w-full overflow-x-auto">
<NavTabs :links="navLinks" />
<NavTabs :links="navLinks" replace />
</div>
<div v-if="projects.length > 0">
<ProjectCardList