Skip to content

Commit 3f58dde

Browse files
committed
fix link generation outputting the wrong locale
1 parent e9f5341 commit 3f58dde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Metalsmith(cwd)
4848
lang(current, locale, slug) {
4949
locale = locale || current.locale || this.defaultLocale;
5050
slug = slug || current.slug;
51-
const found = this.links.find(l => l.endsWith(`${slug}/index.html`) && l.includes(locale));
51+
const found = this.links.find(l => l.endsWith(`${slug}/index.html`) && l.includes(`/${locale}/`));
5252

5353
if (found) {
5454
return found;

0 commit comments

Comments
 (0)