Skip to content

Commit

Permalink
fix(macros/cssxref): use en-US page to fetch front matter key (#8884)
Browse files Browse the repository at this point in the history
  • Loading branch information
yarusome authored Jul 11, 2023
1 parent 285d200 commit 7330766
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion kumascript/macros/cssxref.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ const basePath = `/${lang}/docs/Web/CSS/`;
urlWithoutAnchor = basePath + slug;
url = urlWithoutAnchor + $2;
const thisPage = (!$1 || !$2) ? wiki.getPage(urlWithoutAnchor) : null;
const thisPage = (!$1 || !$2) ?
wiki.getPage(`/en-US/docs/Web/CSS/${slug}`) :
null;
if (!$1) {
// Append parameter brackets to CSS functions
Expand Down

0 comments on commit 7330766

Please sign in to comment.