Commit bd5b104
fix: use proper Blazor syntax for NavLink href with dynamic value
Changed NavLink href from "/blog/@Post.Id" to @($"/blog/{Post.Id}")
to fix compilation error. NavLink component attributes require proper
Blazor syntax for dynamic values, not HTML-style @ interpolation.
Error was: "Component attributes do not support complex content"
Co-Authored-By: Claude Sonnet 4.5 <[email protected]>1 parent 1a6cc63 commit bd5b104
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
0 commit comments