Skip to content

Commit

Permalink
fix: createPage args collision
Browse files Browse the repository at this point in the history
  • Loading branch information
openscript committed Jul 3, 2022
1 parent 8efef73 commit 234ca06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/onCreatePage/translatePage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const translatePage: OnCreatePage = async ({ page, actions }, options) =>

const { referTranslations, adjustPath, ...restContext } = page.context;
let context = restContext;
let path = (context.path as string) || page.path;
let path = (context.basePath as string) || page.path;

// Add locale and prefix from context or path
const contextLocale = page.context.locale as string | undefined;
Expand Down

0 comments on commit 234ca06

Please sign in to comment.