Skip to content

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

Open
Qu1et-x wants to merge 4 commits intomodrinth:mainfrom
Qu1et-x:fix/project-filters-replace-state
Open

feat: use router.replace for project filters to prevent history pollution#5378
Qu1et-x wants to merge 4 commits intomodrinth:mainfrom
Qu1et-x:fix/project-filters-replace-state

Conversation

@Qu1et-x
Copy link

@Qu1et-x Qu1et-x commented Feb 16, 2026

close #4335

@IMB11 IMB11 self-requested a review February 16, 2026 09:36
@IMB11 IMB11 added frontend Involves work from the frontend team 📂 Under review [Triage] Is being reviewed by Modrinth Staff for future roadmap consideration. labels Feb 16, 2026
>
<template v-if="mode === 'navigation'">
<NuxtLink
replace
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would cause all places where navtabs is used to use history.replaceState instead of history.pushState - breaking back navigation - not the right way to approach this.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should have a prop to toggle this - and use the prop on the project page + search page

Copy link
Member

@IMB11 IMB11 Feb 16, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+ collection + user + org pages

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your feedback, I am modifying the code, and this may take a while

@Qu1et-x Qu1et-x requested a review from IMB11 February 17, 2026 00:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend Involves work from the frontend team 📂 Under review [Triage] Is being reviewed by Modrinth Staff for future roadmap consideration.

Development

Successfully merging this pull request may close these issues.

Improve back button behavior when switching mod page tabs

2 participants