Skip to content

Unable to create paths with leading underscore #185

@vwong

Description

@vwong

Version: 5.0.11

Details

In @marko/run, I want to be able to create routes with a leading underscore, like _foo. Using earlier versions, this was possible by URL encoding the path, eg %5ffoo+page.marko, avoiding the actual underscore itself, as that is a reserved character to create pathless directories.

It works ok with @marko/run@0.5.9 + @marko/vite@5.0.10
But breaks with @marko/run@0.5.9 + @marko/vite@5.0.11, with all other packages remaining unchanged.

Windows don't like % in a filename, so I suspect we need another solution for this.

Your Environment

Mac OS 15.2
Node 22.11.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions