Skip to content

[Docs]: Non-path Route Prefixing #13060

@harrysolovay

Description

@harrysolovay

Describe what's incorrect/missing in the documentation

I could not find an answer to this question in the library mode Routing doc:

How might one match a route that is prefixed with a given string, without adding a junction to the path. For instance, let's say I want to match a leading @ to create a URL scheme similar to JSR's (ie. something like http://jsr.io/@david/dax).

The following does not work:

<Route path="/@:scope/:package" Component={PackagePage} />

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions