Skip to content

Fix page overrides #154

Open
Open
@BryceRussell

Description

@BryceRussell

@altsalt Reported that using a configuration like:

pages: {
	'/[...slug]': '/pages/[...slug]',
},

Throws the error: [AstroUserError] Invalid page override, pattern must contain the same params in the same location

This is an issue with the way route patterns are validated: https://github.com/astrolicious/astro-theme-provider/blob/main/package/src/utils/path.ts#L43-L52

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomershelp wantedExtra attention is neededtodoGoal for next major release

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions