Commit afddd1b
fix: keep resolveServerUrl null for non-absolute hrefs
isPath only rejected leading-slash paths, so schemeless hrefs like
"foo/bar" were returned as-is and failed the existing
"returns null for schemeless relative href" test. Gate on
isAbsoluteUrl so any non-absolute href stays null server-side.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent c0a74ee commit afddd1b
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
| 55 | + | |
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
61 | | - | |
| 62 | + | |
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
| |||
0 commit comments