Skip to content

URL Pattern API: mention something about trailing slashes support #9327

Open
@lucacasonato

Description

@lucacasonato

MDN URL: https://developer.mozilla.org/en-US/docs/Web/API/URL_Pattern_API

There should be a section in the "Pattern syntax" section (or an example) that describes that trailing slashes are not automatically matched (see whatwg/urlpattern#14).

There should be a mention of how a user can allow trailing slashes: by appending {/}? to their pathname pattern.

cc @wanderview

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions