Commit 2f0fd87
fix: Gate navigation intercept on canIntercept check
Move canIntercept to the top of the guard conditions so navigations
that cannot be intercepted (e.g. back/forward to history.replaceState
entries) are skipped cleanly without calling e.intercept().
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 89941d4 commit 2f0fd87
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| |||
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
57 | | - | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| |||
0 commit comments