Skip to content

Conversation

@johnpryan
Copy link
Contributor

Fixes flutter/flutter#106204

Pre-launch Checklist

  • I read the [Contributor Guide] and followed the process outlined there for submitting PRs.
  • I read the [Tree Hygiene] wiki page, which explains my responsibilities.
  • I read and followed the [relevant style guides] and ran the auto-formatter. (Unlike the flutter/flutter repo, the flutter/packages repo does use dart format.)
  • I signed the [CLA].
  • The title of the PR starts with the name of the package surrounded by square brackets, e.g. [shared_preferences]
  • I listed at least one issue that this PR fixes in the description above.
  • I updated pubspec.yaml with an appropriate new version according to the [pub versioning philosophy], or this PR is [exempt from version changes].
  • I updated CHANGELOG.md to add a description of the change, [following repository CHANGELOG style].
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making, or this PR is [test-exempt].
  • All existing and new tests are passing.

@johnpryan johnpryan force-pushed the go-router-initial-location-bug branch from c91b9d0 to 9033a34 Compare June 24, 2022 17:38
@johnpryan johnpryan marked this pull request as ready for review June 24, 2022 17:39
@johnpryan johnpryan merged commit 002b45a into flutter:main Jun 24, 2022
@johnpryan johnpryan deleted the go-router-initial-location-bug branch July 22, 2022 18:46
@BrilliantFish
Copy link

the bug now have

@BrilliantFish
Copy link

I can't understand "Ensure that initialLocation doesn't take precedence over deep-links"

@johnpryan
Copy link
Contributor Author

The GoRouter's state was being set to initialLocation (for example /home) when a deep link was received by the platform (such as /my-deep-link)

@thierryoliveira
Copy link

Is this bug happening again? When my app was not launched yet, and I call a deep-link, the router is going to initialLocation instead of the right route. It's working correctly when the app is already open/minimized.

@johnpryan
Copy link
Contributor Author

Hi @thierryoliveira, would you mind filing a new issue?

@thierryoliveira
Copy link

Hi @johnpryan. I will create a new one right now, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[go_router] initialLocation overrides deep link since 4.0.0

4 participants