Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lucacasonato opened this issue Sep 28, 2021 · 1 comment
Open

Comments

@lucacasonato
Copy link
Contributor

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

@wanderview
Copy link

FWIW, I tried to explain the reasoning for the chosen behavior here:

whatwg/urlpattern#38 (reply in thread)

@Rumyra Rumyra added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Nov 25, 2021
@Josh-Cena Josh-Cena added Content:WebAPI Web API docs and removed needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. labels Jul 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants