You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ ] Regression (a behavior that used to work and stopped working in a new release)
[X] Bug report
[ ] Performance issue
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request
[ ] Other... Please describe:
Current behavior
Create a reactive form and connect it with this._bindQueryParamsManager
Add a (submit) function
Route to a different path /xyz in the submit function using this._router.navigateByUrl('/xyz')
Submit form
Navigation doesn't happen (gets cancelled).
Expected behavior
Router should navigate to /xyz. On debugging with withDebugTracing(), the code noticed is 1, which is SupersededByNewNavigation. On calling this._bindQueryParamsManager.destroy() in the submit function, navigation happens as expected.
Minimal reproduction of the problem with instructions
What is the motivation / use case for changing the behavior?
Environment
Angular version: 19.0.5
Browser:
- [ ] Chrome (desktop) version XX
- [ ] Chrome (Android) version XX
- [ ] Chrome (iOS) version XX
- [X] Firefox version 133
- [ ] Safari (desktop) version XX
- [ ] Safari (iOS) version XX
- [ ] IE version XX
- [ ] Edge version XX
For Tooling issues:
- Node version: 22
- Platform: Windows
Others:
The text was updated successfully, but these errors were encountered:
karmasakshi
changed the title
Submitting a linked form causes an extra navigation
Submitting a connected form causes an extra navigation
Jan 3, 2025
I'm submitting a...
Current behavior
this._bindQueryParamsManager
(submit)
function/xyz
in the submit function usingthis._router.navigateByUrl('/xyz')
Navigation doesn't happen (gets cancelled).
Expected behavior
Router should navigate to
/xyz
. On debugging withwithDebugTracing()
, the code noticed is1
, which isSupersededByNewNavigation
. On callingthis._bindQueryParamsManager.destroy()
in the submit function, navigation happens as expected.Minimal reproduction of the problem with instructions
What is the motivation / use case for changing the behavior?
Environment
The text was updated successfully, but these errors were encountered: