Skip to content

Commit

Permalink
Proper encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
JrMasterModelBuilder committed Oct 25, 2023
1 parent 6cbc069 commit d41b3c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bundle/html.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export class BundleHtml extends Bundle {
const {projector, subdir, index} = this;
const {lang, title} = projector;
const path = `${subdir}/${index}`;
const url = path.replaceAll('\\', '/');
const url = path.split(/[\\/]/).map(encodeURIComponent).join('/');
const docAttr = lang === null ? '' : ` lang=${htmlEncode(lang, true)}`;

return [
Expand Down

0 comments on commit d41b3c9

Please sign in to comment.