From 2c7b65cfd8dfb3029a8f72be8b4fe408200b69ce Mon Sep 17 00:00:00 2001 From: Matt Date: Wed, 3 May 2023 14:01:27 +0100 Subject: [PATCH] fix: remove duplicate locale in matchPath --- src/plugin/onCreatePage.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/plugin/onCreatePage.ts b/src/plugin/onCreatePage.ts index d5dc90b..d229182 100644 --- a/src/plugin/onCreatePage.ts +++ b/src/plugin/onCreatePage.ts @@ -105,9 +105,6 @@ export const onCreatePage = async ( if (regexp.test(localePage.path)) { localePage.matchPath = `/${lng}/*`; } - if (localePage.matchPath !== undefined) { - localePage.matchPath = `/${lng}${localePage.matchPath}`; - } createPage(localePage); }); };