modular icon indicating copy to clipboard operation
modular copied to clipboard

fix: Solve the problem that `selectRoute` cannot recover after finding a wildcard route during the initial attempt.

Open haodong404 opened this issue 1 year ago • 0 comments

Description

There are routes: /**, /test/, and if I want to find /test/ using Modular.to.pushNamed('/test'), /** will be matched, that is unexpected. So in this PR, when finding wildcard route at the first time in the selectRoute, it will also do the recovery.

Checklist

  • [x] The title of my PR starts with a Conventional Commit prefix (fix:, feat:, docs: etc).
  • [x] I have read the Contributor Guide and followed the process outlined for submitting PRs.
  • [x] I have updated/added tests for ALL new/updated/fixed functionality.
  • [ ] I have updated/added relevant documentation in docs and added dartdoc comments with ///.
  • [ ] I have updated/added relevant examples in examples.

Breaking Change

  • [ ] Yes, this is a breaking change.
  • [x] No, this is not a breaking change.

Related Issues

haodong404 avatar Nov 12 '24 03:11 haodong404