Commit bbe1c21
committed
fix(website): stop double-prefixing basePath on internal links
Next.js's <Link> already prepends `basePath` to root-relative hrefs.
The `link()` helper was *also* prepending it, producing
`/self-driving-agents/self-driving-agents/<path>` on every internal nav.
Strip the prefix from `link()` (now just normalises to leading-slash)
and keep `asset()` as the only place that adds basePath — used for
plain <img src>, favicon, and other raw HTML attributes that Next does
not auto-prefix.1 parent 0ca6646 commit bbe1c21
1 file changed
Lines changed: 14 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
7 | 8 | | |
8 | | - | |
9 | | - | |
10 | 9 | | |
11 | | - | |
12 | | - | |
| 10 | + | |
13 | 11 | | |
14 | 12 | | |
15 | 13 | | |
16 | | - | |
17 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
19 | 21 | | |
20 | | - | |
| 22 | + | |
| 23 | + | |
21 | 24 | | |
0 commit comments