Commit 2ce66b6
Fix render-link query/fragment duplication on lookup failure
When `$.Page.GetPage` fails (e.g., a stale `.md` link), the original
implementation appended `?query#fragment` to `$url`, which still held
the unchanged `.Destination` string that already contained them —
producing duplicated query/fragment in the output. Move the append
blocks inside the `with $.Page.GetPage` block so they only run after a
successful resolution.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent c3637a4 commit 2ce66b6
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
6 | 8 | | |
7 | | - | |
8 | | - | |
9 | 9 | | |
10 | 10 | | |
0 commit comments