modular
modular copied to clipboard
fix: Solve the problem that `selectRoute` cannot recover after finding a wildcard route during the initial attempt.
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
docsand 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.