Skip to content

[go_router] routerNeglect does not seem to work #119398

@ali-alizadeh

Description

@ali-alizadeh

Steps to Reproduce

  1. Run the router neglect example
  2. Tap on "Go to page 2"

Actual result: A new history entry is created in the browser history entries.
Expacted result: No history entries are created in the browser history entries.

As indicated in the video below, after navigating to a new route, a new entry is pushed to the history entries of the browser and the back button of the browser takes the user to the previous route; While after navigation, no new entries should have been added, and the browser back button should have stayed disabled.

I am using go_router 6.0.1.

2023-01-28.07-59-55_Trim.mp4
Flutter 3.3.10 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 135454af32 (6 weeks ago) • 2022-12-15 07:36:55 -0800
Engine • revision 3316dd8728
Tools • Dart 2.18.6 • DevTools 2.15.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listfound in release: 3.7Found to occur in 3.7has reproducible stepsThe issue has been confirmed reproducible and is ready to work onp: go_routerThe go_router packagepackageflutter/packages repository. See also p: labels.platform-webWeb applications specificallyteam-frameworkOwned by Framework teamtriaged-frameworkTriaged by Framework team

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions