Skip to content

Commit 2bdffa8

Browse files
authored
Merge pull request #70 from ozburo/master
add client-ony routes matchPaths to language pages
2 parents 5926e13 + 0956746 commit 2bdffa8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/plugin/onCreatePage.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@ export const onCreatePage = async (
101101
if (regexp.test(localePage.path)) {
102102
localePage.matchPath = `/${lng}/*`;
103103
}
104+
if (localePage.matchPath !== undefined) {
105+
localePage.matchPath = `/${lng}${localePage.matchPath}`;
106+
}
104107
createPage(localePage);
105108
});
106109
};

0 commit comments

Comments
 (0)