Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Open
Qu1et-x wants to merge 5 commits intomodrinth:main from
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 5 commits intomodrinth:main from
Qu1et-x:fix/project-filters-replace-state

Conversation

@Qu1et-x
Copy link
Contributor

@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
edited
Loading

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
Contributor 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

IMB11 reacted with thumbs up emoji
Copy link
Contributor Author

Choose a reason for hiding this comment

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

While editing the code, I ran pum run fix to fix the code style, which resulted in many additional changed lines in the file. I hope this doesn't affect the review

Copy link
Member

Choose a reason for hiding this comment

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

You should run pnpm prepr:frontend rather than pnpm run fix

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, that makes sense. I got it. Do you have any additional suggestions? I’m trying to improve.

@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

Reviewers

@IMB11 IMB11 Awaiting requested review from IMB11

Requested changes must be addressed to merge this pull request.

Assignees

No one assigned

Labels

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

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Improve back button behavior when switching mod page tabs

2 participants

Comments

AltStyle によって変換されたページ (->オリジナル) /