diff --git a/packages/studio/src/store/StudioActions.ts b/packages/studio/src/store/StudioActions.ts index 6612316b1..36a5791d8 100644 --- a/packages/studio/src/store/StudioActions.ts +++ b/packages/studio/src/store/StudioActions.ts @@ -278,7 +278,7 @@ export default class StudioActions { } const pagesPath = this.getStudioConfig().paths.pages; const filepath = path.join(pagesPath, pageName + ".tsx"); - if (!path.isAbsolute(filepath) || !filepath.startsWith(pagesPath)) { + if (!filepath.startsWith(pagesPath)) { throw new Error(`Error adding page: pageName is invalid: ${pageName}`); } const errorChars = pageName.match(/[\\/?%*:|"<>]/g);