React Router API Reference
    Preparing search index...

    Interface PathPattern<Path>

    Used to match on some portion of a URL pathname.

    interface PathPattern<Path extends string = string> {
        caseSensitive?: boolean;
        end?: boolean;
        path: Path;
    }

    Type Parameters

    • Path extends string = string
    Index

    Properties

    caseSensitive?: boolean

    Should be true if the static portions of the path should be matched in the same case.

    end?: boolean

    Should be true if this pattern should match the entire URL pathname.

    path: Path

    A string to match against a URL pathname. May contain :id-style segments to indicate placeholders for dynamic parameters. It May also end with /* to indicate matching the rest of the URL pathname.