Commit 6e8d759
fix(blazor): Skip duplicate navigation breadcrumbs in WASM (#4922)
* fix(blazor): Skip duplicate navigation breadcrumbs in WASM
When Blazor apps use both @OnClick+NavigateTo and href on links,
LocationChanged fires twice for the same URL. Skip creating a
breadcrumb when the new location matches the previous one.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Add changelog entry for duplicate breadcrumb fix
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Remove changelog entry
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 14ec84f commit 6e8d759
File tree
2 files changed
+20
-0
lines changed- src/Sentry.AspNetCore.Blazor.WebAssembly/Internal
- test/Sentry.AspNetCore.Blazor.WebAssembly.Tests
2 files changed
+20
-0
lines changedLines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
45 | 51 | | |
46 | 52 | | |
47 | 53 | | |
| |||
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
150 | 164 | | |
0 commit comments