Skip to content

Commit

Permalink
remove origin from externalized path
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanseifert committed May 16, 2024
1 parent 9a183eb commit 9581f39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/utils/path.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export function externalizeXWalkPrefixLink(pathName) {
if (!url.pathname.endsWith('.html')) {
url.pathname = `${url.pathname}.html`;
}
return url.toString();
return url.toString().substring(url.origin);
}
if (externalized.endsWith('/index')) {
return externalized.substring(0, externalized.length - 'index'.length);
Expand Down

0 comments on commit 9581f39

Please sign in to comment.