Skip to content

docs(vue): update useIonRouter replace direction - #4794

Merged
ShaneK merged 1 commit into
mainfrom
FW-7870
Oct 20, 2026
Merged

ShaneK merged 1 commit into
mainfrom
FW-7870

Conversation

@ShaneK

@ShaneK ShaneK commented Oct 16, 2026 •

Copy link
Copy Markdown
Member

What is the current behavior?

Currently, the useIonRouter docs say replace is the same as navigate(location, 'root', 'replace', animation), which clears the navigation stack. The navigate type also leaves out the none direction.

What is the new behavior?

The docs now say replace uses the none direction, so it keeps the pages beneath the replaced one and back still works. They also point to navigate(location, 'root', 'replace') for clearing the stack, and none is added to the type. This is for v9 only.

Important

This needs to be merged only after ionic-team/ionic-framework#31583

@ShaneK
ShaneK requested a review from a team as a code owner October 16, 2026 18:27
@ShaneK
ShaneK requested a review from thetaPC October 16, 2026 18:27
@vercel

vercel Bot commented Oct 16, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
ionic-docs Ready Ready Preview Oct 16, 2026 6:27pm UTC

Request Review

@thetaPC thetaPC left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@ShaneK
ShaneK merged commit 3d33ac7 into main Oct 20, 2026
7 checks passed
@ShaneK
ShaneK deleted the FW-7870 branch October 20, 2026 15:23

This branch was successfully deployed

1 active deployment
Preview — 97d63fb8 Deployed Oct 16, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants