Commit 5a5fe19
Fix Learn site snapshot: use wget --trust-server-names for /ja/ index.html layout
The Build Learn site step failed its `test -f snapshot/ja/index.html`
assertions. The Learn app renders bare links (href="/ja") while vinext runs
with trailingSlash:true, so each bare link 308-redirects to "/ja/". wget named
files after the pre-redirect URL (ja / ja.html with -E), never producing the
directory index.html layout GitHub Pages needs.
--trust-server-names makes wget name files after the redirect target, so
"/ja/" -> ja/index.html and "/ja/rest/" -> ja/rest/index.html. Drops -E and
needs no post-download restructuring. Verified locally: all test -f assertions
pass and converted links resolve under /learn/.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 2c88e5e commit 5a5fe19
1 file changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
95 | 104 | | |
96 | | - | |
| 105 | + | |
97 | 106 | | |
98 | 107 | | |
99 | 108 | | |
| |||
0 commit comments