Skip to content

Clarify path matching behavior in Express.js documentation #2036

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

Open
wants to merge 2 commits into
base: gh-pages
Choose a base branch
from

Conversation

kushal4345
Copy link

Summary

Updated the path examples documentation to clarify that route matching in Express.js is exact by default, unless path patterns, wildcards, or regular expressions are used.

Details

Previously, the docs said “This will match paths starting with…”, which could be interpreted as matching partial strings (e.g., /abcde) when using app.use('/abcd', ...). This is misleading because Express matches exact paths unless explicitly configured otherwise.

Change

@kushal4345 kushal4345 requested a review from a team as a code owner August 11, 2025 03:56
Copy link

netlify bot commented Aug 11, 2025

Deploy Preview for expressjscom-preview ready!

Name Link
🔨 Latest commit 307fb5e
🔍 Latest deploy log https://app.netlify.com/projects/expressjscom-preview/deploys/689ae4d0597f4100086806e7
😎 Deploy Preview https://deploy-preview-2036--expressjscom-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Contributor

github-actions bot commented Aug 11, 2025

🚦 Lighthouse Results (Mobile & Desktop)

URL Device Perf A11y Best Practices
/ mobile 🔴 62 🟢 100 🟢 96
/en/blog/posts.html mobile 🔴 72 🟢 96 🟢 96
/en/5x/api.html mobile 🔴 67 🟢 95 🟢 96
/ desktop 🟢 95 🟢 100 🟢 96
/en/blog/posts.html desktop 🟢 97 🟢 96 🟢 93
/en/5x/api.html desktop 🟢 95 🟢 95 🟢 96

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The Path examples documentation is misleading
1 participant