Description
When Live Preview serves a directory index page for a folder, all generated links include percent‑encoded backslashes (%5C) and duplicated path segments. This results in broken URLs such as:
http://127.0.0.1:3000/apps/%5Capps%5Cfolder
Environment
VS Code: 1.134.0
Live Preview: 0.5.2026072301
OS: Windows 11
Workspace structure example
apps/
folder/
anotherfolder/
Steps to reproduce
- Open a workspace containing subfolders under any directory (e.g.,
/apps).
- Start Live Preview (
Live Preview: Start Server).
- Navigate to the folder index page, e.g.
http://127.0.0.1:3000/apps.
- Observe that all links include encoded backslashes and duplicated folder names.
An incorrect result will end up looking like:
<a href="%5Capps%5Cfolder/">folder/</a>
<a href="%5Capps%5Canotherfolder/">anotherfolder/</a>
The expected result (though there could be many ways of formatting):
<a href="./folder/">folder/</a>
<a href="./anotherfolder/">anotherfolder/</a>
Notes:
This appears to be a path‑normalization issue where Windows-style \ separators are encoded instead of converted to /.
Related:
I think these are the same issue, I'm just trying to add more info.
#762
#795
Description
When Live Preview serves a directory index page for a folder, all generated links include percent‑encoded backslashes (
%5C) and duplicated path segments. This results in broken URLs such as:Environment
VS Code: 1.134.0
Live Preview: 0.5.2026072301
OS: Windows 11
Workspace structure example
Steps to reproduce
/apps).Live Preview: Start Server).http://127.0.0.1:3000/apps.An incorrect result will end up looking like:
The expected result (though there could be many ways of formatting):
Notes:
This appears to be a path‑normalization issue where Windows-style
\separators are encoded instead of converted to/.Related:
I think these are the same issue, I'm just trying to add more info.
#762
#795