Skip to content

Commit

Permalink
fix(core): normalize window paths when "publicPath" is set (#639)
Browse files Browse the repository at this point in the history
  • Loading branch information
tgreyuk committed Jun 29, 2024
1 parent 956ca03 commit beb8931
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export class MarkdownThemeContext {
const publicPath = this.options.getValue('publicPath');

if (publicPath && !ignorePublicPath) {
return encodeURI(path.join(publicPath, url));
return encodeURI(path.join(publicPath, url).replace(/\\/g, '/'));
}

const baseUrl = path.relative(
Expand Down

0 comments on commit beb8931

Please sign in to comment.