René's URL Explorer Experiment


Title: fix(shared,nextjs,astro,nuxt): normalize URL paths in createPathMatcher by nikosdouvlis · Pull Request #8310 · clerk/javascript · GitHub

Open Graph Title: fix(shared,nextjs,astro,nuxt): normalize URL paths in createPathMatcher by nikosdouvlis · Pull Request #8310 · clerk/javascript

X Title: fix(shared,nextjs,astro,nuxt): normalize URL paths in createPathMatcher by nikosdouvlis · Pull Request #8310 · clerk/javascript

Description: Official JavaScript repository for Clerk authentication - fix(shared,nextjs,astro,nuxt): normalize URL paths in createPathMatcher by nikosdouvlis · Pull Request #8310 · clerk/javascript

Open Graph Description: Summary Adds normalizePath to @clerk/shared which normalizes URL paths before route matching in createPathMatcher, preventing route protection bypass via malformed or non-canonical paths Introduce...

X Description: Summary Adds normalizePath to @clerk/shared which normalizes URL paths before route matching in createPathMatcher, preventing route protection bypass via malformed or non-canonical paths Introduce...

Opengraph URL: https://github.com/clerk/javascript/pull/8310

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:5a76c688-58d6-a44c-85d8-141b69704aef
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8492:250501:2A1BCE:3C1328:6AFAC3CA
html-safe-noncec1c7430d300c0449843ff54032f5e1eec92ff65044c7abc66ec6355ed70e9e49
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NDkyOjI1MDUwMToyQTFCQ0U6M0MxMzI4OjZBRkFDM0NBIiwidmlzaXRvcl9pZCI6IjQ1OTc2ODA0NDExMDc1OTYyMzQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac7fd6529c300d15026e79c7504da5cf14d1c3b94535aa0bde3817ee03282ab526
hovercard-subject-tagpull_request:3534385021
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/clerk/javascript/8310/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/09f6fde718ff277749ee1ea75174bc4575fb99d7b67dfb936d33fcc3b155a15e/clerk/javascript/pull/8310
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/09f6fde718ff277749ee1ea75174bc4575fb99d7b67dfb936d33fcc3b155a15e/clerk/javascript/pull/8310
og:image:altSummary Adds normalizePath to @clerk/shared which normalizes URL paths before route matching in createPathMatcher, preventing route protection bypass via malformed or non-canonical paths Introduce...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamenikosdouvlis
hostnamegithub.com
expected-hostnamegithub.com
None612d3e6ffd693e7ea8d9fcf452370995872baef31d825b1fedef704cd3d24ac7
turbo-cache-controlno-cache
go-importgithub.com/clerk/javascript git https://github.com/clerk/javascript.git
octolytics-dimension-user_id49538330
octolytics-dimension-user_loginclerk
octolytics-dimension-repository_id438331492
octolytics-dimension-repository_nwoclerk/javascript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id438331492
octolytics-dimension-repository_network_root_nwoclerk/javascript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release072e34035c13c31543fba9f025cbbbda4210dae4
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/clerk/javascript/pull/8310#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fclerk%2Fjavascript%2Fpull%2F8310
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fclerk%2Fjavascript%2Fpull%2F8310
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=clerk%2Fjavascript
Reloadhttps://github.com/clerk/javascript/pull/8310
Reloadhttps://github.com/clerk/javascript/pull/8310
Reloadhttps://github.com/clerk/javascript/pull/8310
clerkhttps://github.com/clerk
javascripthttps://github.com/clerk/javascript
Codehttps://github.com/clerk/javascript
Issues44 (44)https://github.com/clerk/javascript/issues
Pull requests112 (112)https://github.com/clerk/javascript/pulls
Discussionshttps://github.com/clerk/javascript/discussions
Actionshttps://github.com/clerk/javascript/actions
Security and quality6 (6)https://github.com/clerk/javascript/security
Insightshttps://github.com/clerk/javascript/pulse
https://github.com/clerk/javascript
nikosdouvlishttps://github.com/nikosdouvlis
release/core-2https://github.com/clerk/javascript/tree/release/core-2
normalize-url-paths-core-2https://github.com/clerk/javascript/tree/normalize-url-paths-core-2
Conversationhttps://github.com/clerk/javascript/pull/8310
Commits16 (16)https://github.com/clerk/javascript/pull/8310/commits
Checkshttps://github.com/clerk/javascript/pull/8310/checks
Files changedhttps://github.com/clerk/javascript/pull/8310/files
fix(shared,nextjs,astro,nuxt): normalize URL paths in createPathMatcherhttps://github.com/clerk/javascript/pull/8310#top
nikosdouvlishttps://github.com/nikosdouvlis
release/core-2https://github.com/clerk/javascript/tree/release/core-2
normalize-url-paths-core-2https://github.com/clerk/javascript/tree/normalize-url-paths-core-2
https://github.com/nikosdouvlis
nikosdouvlishttps://github.com/nikosdouvlis
Apr 15, 2026https://github.com/clerk/javascript/pull/8310#issue-4269513804
Please reload this pagehttps://github.com/clerk/javascript/pull/8310
April 13, 2026 13:17https://github.com/clerk/javascript/pull/8310#commits-pushed-ff660d0
fix(shared,nextjs,astro,nuxt): decode percent-encoded URLs in path ma…https://github.com/clerk/javascript/pull/8310/commits/ff660d0505a44f778aa807d1306acbf0d893beca
ff660d0https://github.com/clerk/javascript/pull/8310/commits/ff660d0505a44f778aa807d1306acbf0d893beca
chore: add changeset for percent-encoded URL fixhttps://github.com/clerk/javascript/pull/8310/commits/a1189ffbbbcfd2641ff126bc2d77e7da023b6aa3
a1189ffhttps://github.com/clerk/javascript/pull/8310/commits/a1189ffbbbcfd2641ff126bc2d77e7da023b6aa3
test(nuxt): add unit test for MalformedURLError handling in clerkMidd…https://github.com/clerk/javascript/pull/8310/commits/20741e0ceae542839b4653869a6671bfbb82fd16
20741e0https://github.com/clerk/javascript/pull/8310/commits/20741e0ceae542839b4653869a6671bfbb82fd16
test(nextjs): separate percent-encoded URL tests into own describe blockhttps://github.com/clerk/javascript/pull/8310/commits/ef0f149b11bbe261797780b5ce1fce21b62b6b3d
ef0f149https://github.com/clerk/javascript/pull/8310/commits/ef0f149b11bbe261797780b5ce1fce21b62b6b3d
test(nuxt): separate percent-encoded URL tests and fix malformed enco…https://github.com/clerk/javascript/pull/8310/commits/1f7cfdbe0c0fb0720b54ac236949a359584a1866
1f7cfdbhttps://github.com/clerk/javascript/pull/8310/commits/1f7cfdbe0c0fb0720b54ac236949a359584a1866
fix(shared): normalize double slashes in path matcher to prevent bypasshttps://github.com/clerk/javascript/pull/8310/commits/39568f59402c17d070cb78256a03259d20896cb7
39568f5https://github.com/clerk/javascript/pull/8310/commits/39568f59402c17d070cb78256a03259d20896cb7
fix(shared,nuxt): use decodeURI to preserve path delimiters, catch Ma…https://github.com/clerk/javascript/pull/8310/commits/9e3ca194033e16c7c6588c3e7147ca14fe5464a6
9e3ca19https://github.com/clerk/javascript/pull/8310/commits/9e3ca194033e16c7c6588c3e7147ca14fe5464a6
https://github.com/Ephem
Add tests for encoded dot slash caseshttps://github.com/clerk/javascript/pull/8310/commits/0795bb01a9534d9300c4216f2e5a606bc838a3f6
0795bb0https://github.com/clerk/javascript/pull/8310/commits/0795bb01a9534d9300c4216f2e5a606bc838a3f6
test(nextjs): add Pages Router integration tests for percent-encoded …https://github.com/clerk/javascript/pull/8310/commits/06827ec82530feb6aefbabc3c31f224b792c9030
06827echttps://github.com/clerk/javascript/pull/8310/commits/06827ec82530feb6aefbabc3c31f224b792c9030
refactor(integration): move Next.js middleware tests to dedicated filehttps://github.com/clerk/javascript/pull/8310/commits/9aaf6ca74a1cc80966b7c8f740d85e124b5afe10
9aaf6cahttps://github.com/clerk/javascript/pull/8310/commits/9aaf6ca74a1cc80966b7c8f740d85e124b5afe10
fix(integration): restore dynamic-keys.test.ts to original statehttps://github.com/clerk/javascript/pull/8310/commits/87cb44ead95ca9d768994c0e90d0fe0fd5f9c3ae
87cb44ehttps://github.com/clerk/javascript/pull/8310/commits/87cb44ead95ca9d768994c0e90d0fe0fd5f9c3ae
refactor(shared): extract normalizePath as independently testable fun…https://github.com/clerk/javascript/pull/8310/commits/7c37ef6312256c4d454b72fce15629d134a27135
7c37ef6https://github.com/clerk/javascript/pull/8310/commits/7c37ef6312256c4d454b72fce15629d134a27135
chore: update changeset descriptionhttps://github.com/clerk/javascript/pull/8310/commits/229cc8c2c1fca9dce4e5d9bb45b3fe544d5c88e5
229cc8chttps://github.com/clerk/javascript/pull/8310/commits/229cc8c2c1fca9dce4e5d9bb45b3fe544d5c88e5
chore: rename changeset filehttps://github.com/clerk/javascript/pull/8310/commits/f1a18ecd715e6b9c9f026c4e6efeda2fc78701a8
f1a18echttps://github.com/clerk/javascript/pull/8310/commits/f1a18ecd715e6b9c9f026c4e6efeda2fc78701a8
fix(nuxt): remove MalformedURLError catch from client-side routeMatcherhttps://github.com/clerk/javascript/pull/8310/commits/9eeffdb9a6a8ce2bae9a4fe97325e4f199316f2a
9eeffdbhttps://github.com/clerk/javascript/pull/8310/commits/9eeffdb9a6a8ce2bae9a4fe97325e4f199316f2a
https://github.com/apps/coderabbitai
coderabbitaihttps://github.com/apps/coderabbitai
Apr 15, 2026https://github.com/clerk/javascript/pull/8310#issuecomment-4252770745
Please reload this pagehttps://github.com/clerk/javascript/pull/8310
Please reload this pagehttps://github.com/clerk/javascript/pull/8310
https://github.com/apps/changeset-bot
changeset-bothttps://github.com/apps/changeset-bot
Apr 15, 2026https://github.com/clerk/javascript/pull/8310#issuecomment-4252771078
Please reload this pagehttps://github.com/clerk/javascript/pull/8310
1d45fbfhttps://github.com/clerk/javascript/commit/1d45fbf56448995309c34e2c7c3d28c18408a907
Click here to learn what changesets arehttps://github.com/changesets/changesets/blob/main/docs/adding-a-changeset.md
Click here if you're a maintainer who wants to add another changeset to this PRhttps://github.com/clerk/javascript/new/normalize-url-paths-core-2?filename=.changeset/real-jobs-smash.md&value=---%0A%22%40clerk%2Fastro%22%3A%20patch%0A%22%40clerk%2Fnextjs%22%3A%20patch%0A%22%40clerk%2Fnuxt%22%3A%20patch%0A%22%40clerk%2Fshared%22%3A%20patch%0A---%0A%0Afix(shared%2Cnextjs%2Castro%2Cnuxt)%3A%20normalize%20URL%20paths%20in%20createPathMatcher%0A
Please reload this pagehttps://github.com/clerk/javascript/pull/8310
https://github.com/apps/vercel
vercelhttps://github.com/apps/vercel
Apr 15, 2026https://github.com/clerk/javascript/pull/8310#issuecomment-4252771138
Please reload this pagehttps://github.com/clerk/javascript/pull/8310
Vercel for GitHubhttps://vercel.link/github-learn-more
clerk-js-sandboxhttps://vercel.com/clerk-production/clerk-js-sandbox
https://camo.githubusercontent.com/833ba95642364322d56bfc6cc95692affdd7a5a6ca7b50fdcc44aa7e47372d3b/68747470733a2f2f76657263656c2e636f6d2f7374617469632f7374617475732f72656164792e737667
Readyhttps://vercel.com/clerk-production/clerk-js-sandbox/8FdFw3oiwGjMZby5xS5BSF37S5Vn
Previewhttps://clerk-js-sandbox-git-normalize-url-paths-core-2.clerkstage.dev
Commenthttps://vercel.live/open-feedback/clerk-js-sandbox-git-normalize-url-paths-core-2.clerkstage.dev?via=pr-comment-feedback-link
https://vercel.com/vercel-agent/request-review?owner=clerk&repo=javascript&pr=8310
Please reload this pagehttps://github.com/clerk/javascript/pull/8310
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
nextjs https://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3Anextjs
integration https://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3Aintegration
astro https://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3Aastro
nuxt https://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3Anuxt
core-2 https://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3Acore-2
Apr 15, 2026https://github.com/clerk/javascript/pull/8310#event-24531748978
https://github.com/Ephem
Ephemhttps://github.com/Ephem
Apr 15, 2026 https://github.com/clerk/javascript/pull/8310#pullrequestreview-4114269220
View reviewed changes https://github.com/clerk/javascript/pull/8310/files/9eeffdb9a6a8ce2bae9a4fe97325e4f199316f2a
https://github.com/apps/vercel
vercelhttps://github.com/apps/vercel
deployedhttps://clerk-js-sandbox-4lxofrvcv.clerkstage.dev
Previewhttps://clerk-js-sandbox-4lxofrvcv.clerkstage.dev
April 15, 2026 14:10https://github.com/clerk/javascript/pull/8310#event-24531791021
View deploymenthttps://clerk-js-sandbox-4lxofrvcv.clerkstage.dev
https://github.com/apps/pkg-pr-new
pkg-pr-newhttps://github.com/apps/pkg-pr-new
Apr 15, 2026https://github.com/clerk/javascript/pull/8310#issuecomment-4252794279
Open in StackBlitzhttps://pkg.pr.new/template/9b7ab45f-61c9-4265-b7c5-5750707cdc81
9eeffdbhttps://github.com/clerk/javascript/runs/71469301526
Please reload this pagehttps://github.com/clerk/javascript/pull/8310
fix(integration): skip astro check in prod build testhttps://github.com/clerk/javascript/pull/8310/commits/1d45fbf56448995309c34e2c7c3d28c18408a907
1d45fbfhttps://github.com/clerk/javascript/pull/8310/commits/1d45fbf56448995309c34e2c7c3d28c18408a907
https://github.com/apps/vercel
vercelhttps://github.com/apps/vercel
deployedhttps://clerk-js-sandbox-q8pxqi73b.clerkstage.dev
Previewhttps://clerk-js-sandbox-q8pxqi73b.clerkstage.dev
April 15, 2026 14:33https://github.com/clerk/javascript/pull/8310#event-24532635621
View deploymenthttps://clerk-js-sandbox-q8pxqi73b.clerkstage.dev
https://github.com/nikosdouvlis
nikosdouvlishttps://github.com/nikosdouvlis
2c14f0ehttps://github.com/clerk/javascript/commit/2c14f0e1c560dccad0c62596b4ccd97e3a215151
Apr 15, 2026https://github.com/clerk/javascript/pull/8310#event-24532654142
Please reload this pagehttps://github.com/clerk/javascript/pull/8310
https://github.com/nikosdouvlis
nikosdouvlishttps://github.com/nikosdouvlis
April 15, 2026 14:33https://github.com/clerk/javascript/pull/8310#event-24532655879
https://github.com/clerk-cookie
clerk-cookiehttps://github.com/clerk-cookie
Apr 15, 2026 https://github.com/clerk/javascript/pull/8310#ref-pullrequest-4269683032
ci(repo): Version packages (Core 2) #8316 https://github.com/clerk/javascript/pull/8316
https://github.com/nikosdouvlis
nikosdouvlishttps://github.com/nikosdouvlis
May 26, 2026 https://github.com/clerk/javascript/pull/8310#ref-pullrequest-4524687018
feat(clerk-js,shared): Backport Session Minter SDK changes to core-2 #8643 https://github.com/clerk/javascript/pull/8643
https://github.com/apps/coderabbitai
coderabbitaihttps://github.com/apps/coderabbitai
Jun 14, 2026 https://github.com/clerk/javascript/pull/8310#ref-pullrequest-4658398016
Fix X button functionality in sidebar, add debug logs, update progres… Zerwolf729/ghost-ai#2 https://github.com/Zerwolf729/ghost-ai/pull/2
Deployedhttps://clerk-js-sandbox-q8pxqi73b.clerkstage.dev
vercel[bot]https://github.com/apps/vercel
View deployment https://clerk-js-sandbox-q8pxqi73b.clerkstage.dev
https://github.co/hiddenchars
https://github.com/clerk/javascript/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fclerk%2Fjavascript%2Fpull%2F8310
https://github.com/Ephem
Ephem https://github.com/Ephem
https://github.com/clerk/javascript/pull/8310/files/9eeffdb9a6a8ce2bae9a4fe97325e4f199316f2a
Please reload this pagehttps://github.com/clerk/javascript/pull/8310
astro https://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3Aastro
core-2 https://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3Acore-2
integration https://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3Aintegration
nextjs https://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3Anextjs
nuxt https://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3Anuxt
Please reload this pagehttps://github.com/clerk/javascript/pull/8310
https://github.com/nikosdouvlis
https://github.com/Ephem
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.