cleanPath outputting \\ instead of /
See original GitHub issueThe cleanPath function seems to be inserting double backslashes instead of a single forward slash in the main html file. For example the server/helper.ts file is generating the modulepreload javascript link using
<link rel="modulepreload" href=${JSON.stringify(util.cleanPath(v.src))} />
which outputs as:
<link rel="modulepreload" href="\\_aleph\\main.[someval].js" />
which instead should be:
<link rel="modulepreload" href="/_aleph/main.[someval].js" />
The reason I bring this up is when I try to run the hello world locally I get errors that the main.[someval].js cannot be accessed, because the HTML is treating the link as a local file resource and not a HTTP resource. I noticed the sample app at https://alephjs-hello-world.vercel.app/ has the correct HTML reference using / instead of \.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:12 (9 by maintainers)
fixed in latest release
@kotx thanks, i will look into it!