Repository navigation
Commit b035fdd
committed
fix(router): don't intercept downloads with the Navigation API
With the platform navigation integration, the router intercepts every
same-origin `navigate` event it can, except reloads. That includes
`<a download>` links, which then become same-document navigations: the
file is never downloaded.
Leave navigate events that have a `downloadRequest` to the browser, the
same way reloads already are.
Fixes angular#715511 parent a0702f0 commit b035fdd
2 files changed
Lines changed: 28 additions & 1 deletion
File tree
- packages/router
- src/statemanager
- test
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
405 | 405 | | |
406 | 406 | | |
407 | 407 | | |
408 | | - | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
409 | 411 | | |
410 | 412 | | |
411 | 413 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
484 | 484 | | |
485 | 485 | | |
486 | 486 | | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
487 | 512 | | |
488 | 513 | | |
0 commit comments