René's URL Explorer Experiment


Title: [Router] Add defaultUrlMatcher to public API · Issue #35928 · angular/angular · GitHub

Open Graph Title: [Router] Add defaultUrlMatcher to public API · Issue #35928 · angular/angular

X Title: [Router] Add defaultUrlMatcher to public API · Issue #35928 · angular/angular

Description: 🚀 feature request Relevant Package This feature request is for @angular/router Description There should be ability to access defaultUrlMatcher from user's code. Ability to access and use it in custom implementations of UrlMatcher will ea...

Open Graph Description: 🚀 feature request Relevant Package This feature request is for @angular/router Description There should be ability to access defaultUrlMatcher from user's code. Ability to access and use it in cust...

X Description: 🚀 feature request Relevant Package This feature request is for @angular/router Description There should be ability to access defaultUrlMatcher from user's code. Ability to access and use it in ...

Opengraph URL: https://github.com/angular/angular/issues/35928

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Router] Add defaultUrlMatcher to public API","articleBody":"\u003c!--🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅\r\n\r\nOh hi there! 😄 \r\n\r\nTo expedite issue processing please search open and closed issues before submitting a new one.\r\nExisting issues often contain information about workarounds, resolution, or progress updates.\r\n\r\n🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅-->\r\n\r\n\r\n# 🚀 feature request\r\n\r\n### Relevant Package\r\n\u003c!-- Can you pin-point one or more @angular/* packages the are relevant for this feature request? -->\r\nThis feature request is for @angular/router\r\n\r\n\r\n### Description\r\nThere should be ability to access defaultUrlMatcher from user's code.\r\nAbility to access and use it in custom implementations of UrlMatcher will ease developing of custom url matchers like in this question:\r\nhttps://stackoverflow.com/a/41543827/5358442\r\n```ts\r\nfunction digitsMatcher(segments: UrlSegment[], segmentGroup: UrlSegmentGroup, route: Route): UrlMatchResult | null {\r\n  const result = defaultUrlMatcher(segments, segmentGroup, route);\r\n\r\n  if (!result || !result.consumed || result.consumed.length \u003c 1) {\r\n    return;\r\n  }\r\n\r\n  const re = /^\\d+$/;\r\n  const match = re.exec(result.consumed[0].path);\r\n\r\n  if (match) {\r\n    return result;\r\n  }\r\n\r\n  return null;\r\n}\r\n```\r\n\r\n### Describe the solution you'd like\r\nThere should be ability to import default URL matcher and call it from user-defined custom matcher.\r\n\r\n### Describe alternatives you've considered\r\nAnother solution of \"my\" case can be adding support of constraints for route params with few built-in constraints like Integer and Regex and ability to create custom constraints. \r\nThis could look something like this:\r\n```ts\r\nconst routes: Routes = [\r\n { path: ':clientId/:lang', component: ClientOpenComponent,\r\n    constraints: { \r\n               clientId: [RouteParamConstraints.Integer], /*built-in*/\r\n               lang: [LangRouterParamConstraint] } /*custom*/\r\n}];\r\n```\r\n","author":{"url":"https://github.com/RoboBurned","@type":"Person","name":"RoboBurned"},"datePublished":"2020-03-07T08:45:49Z","url":"https://github.com/angular/angular/issues/35928"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:581d40c2-fbd5-8609-67a9-fb0d44434459
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idAD16:1DCB8C:DE487A:126FC22:6B00FCA0
html-safe-nonce7bcdc1336c0edb1db6fc56e7ccb702e4281d7a0edb55244ff3bd810781f5b4b2
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRDE2OjFEQ0I4QzpERTQ4N0E6MTI2RkMyMjo2QjAwRkNBMCIsInZpc2l0b3JfaWQiOiI3Njk2MjA0NjQ1OTkwOTg4OTYwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac7b1b40de3c36262cb0749e43012d267f60fd875da08558df105091e902cb082e
hovercard-subject-tagissue:577302426
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular/35928/issue_layout
twitter:imagehttps://opengraph.githubassets.com/fbae0dfcc6cbaa831005c3cc5040cad48cbcdec365bc2374336c33baa8e6d6ee/angular/angular/issues/35928
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/fbae0dfcc6cbaa831005c3cc5040cad48cbcdec365bc2374336c33baa8e6d6ee/angular/angular/issues/35928
og:image:alt🚀 feature request Relevant Package This feature request is for @angular/router Description There should be ability to access defaultUrlMatcher from user's code. Ability to access and use it in cust...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameRoboBurned
hostnamegithub.com
expected-hostnamegithub.com
Nonee208d86428ec00a57ade75058166297440e8128a01e5287c31a53dc042bbf187
turbo-cache-controlno-preview
go-importgithub.com/angular/angular git https://github.com/angular/angular.git
octolytics-dimension-user_id139426
octolytics-dimension-user_loginangular
octolytics-dimension-repository_id24195339
octolytics-dimension-repository_nwoangular/angular
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id24195339
octolytics-dimension-repository_network_root_nwoangular/angular
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
release7dafd017fb7809a839c443dba08622af38e63c09
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular/issues/35928#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F35928
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%2Fangular%2Fangular%2Fissues%2F35928
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%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=angular%2Fangular
Reloadhttps://github.com/angular/angular/issues/35928
Reloadhttps://github.com/angular/angular/issues/35928
Reloadhttps://github.com/angular/angular/issues/35928
angularhttps://github.com/angular
angularhttps://github.com/angular/angular
Codehttps://github.com/angular/angular
Issues835 (835)https://github.com/angular/angular/issues
Pull requests141 (141)https://github.com/angular/angular/pulls
Discussionshttps://github.com/angular/angular/discussions
Actionshttps://github.com/angular/angular/actions
Projectshttps://github.com/angular/angular/projects
Security and quality40 (40)https://github.com/angular/angular/security
Insightshttps://github.com/angular/angular/insights
https://github.com/angular/angular
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/35928
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/35928
[Router] Add defaultUrlMatcher to public APIhttps://github.com/angular/angular/issues/35928#top
https://github.com/atscott
area: routerhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20router%22
featureLabel used to distinguish feature request from other issueshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22feature%22
freq1: lowhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22freq1%3A%20low%22
Backloghttps://github.com/angular/angular/milestone/82
https://github.com/RoboBurned
RoboBurnedhttps://github.com/RoboBurned
on Mar 7, 2020https://github.com/angular/angular/issues/35928#issue-577302426
https://stackoverflow.com/a/41543827/5358442https://stackoverflow.com/a/41543827/5358442
pkozlowski-opensourcehttps://github.com/pkozlowski-opensource
area: coreIssues related to the framework runtimehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20core%22
on Mar 7, 2020https://github.com/angular/angular/issues/35928#event-3107576901
ngbothttps://github.com/apps/ngbot
needsTriagehttps://github.com/angular/angular/milestone/83
on Mar 7, 2020https://github.com/angular/angular/issues/35928#event-3107576909
pkozlowski-opensourcehttps://github.com/pkozlowski-opensource
area: routerhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20router%22
area: coreIssues related to the framework runtimehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20core%22
on Mar 7, 2020https://github.com/angular/angular/issues/35928#event-3107580269
atscotthttps://github.com/atscott
freq1: lowhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22freq1%3A%20low%22
featureLabel used to distinguish feature request from other issueshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22feature%22
on Mar 10, 2020https://github.com/angular/angular/issues/35928#event-3116684829
ngbothttps://github.com/apps/ngbot
needsTriagehttps://github.com/angular/angular/milestone/83
Backloghttps://github.com/angular/angular/milestone/82
on Mar 10, 2020https://github.com/angular/angular/issues/35928#event-3116684866
https://github.com/amakhrov
amakhrovhttps://github.com/amakhrov
on Nov 23, 2020https://github.com/angular/angular/issues/35928#issuecomment-732431683
https://github.com/CarlosHAraujo
CarlosHAraujohttps://github.com/CarlosHAraujo
on Feb 9, 2021https://github.com/angular/angular/issues/35928#issuecomment-776205904
angular-robothttps://github.com/apps/angular-robot
votes requiredhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22votes%20required%22
on Jun 4, 2021https://github.com/angular/angular/issues/35928#event-4843660412
https://github.com/apps/angular-robot
angular-robothttps://github.com/apps/angular-robot
on Jun 4, 2021https://github.com/angular/angular/issues/35928#issuecomment-854791444
documentationhttps://github.com/angular/angular/blob/e29eb8abfbfdfb793e08ac88e14b7ba6d2ff2136/docs/GITHUB_PROCESS.md#feature-request-process
https://github.com/apps/angular-robot
angular-robothttps://github.com/apps/angular-robot
on Jun 25, 2021https://github.com/angular/angular/issues/35928#issuecomment-868527914
communityhttps://angular.io/resources?category=community
packagehttps://angular.io/guide/creating-libraries
documentationhttps://github.com/angular/angular/blob/e29eb8abfbfdfb793e08ac88e14b7ba6d2ff2136/docs/GITHUB_PROCESS.md#feature-request-process
angular-robothttps://github.com/apps/angular-robot
insufficient voteshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22insufficient%20votes%22
on Jun 25, 2021https://github.com/angular/angular/issues/35928#event-4940274545
jessicajaniukhttps://github.com/jessicajaniuk
atscotthttps://github.com/atscott
on Jul 18, 2022https://github.com/angular/angular/issues/35928#event-7016397012
AndrewKushnirhttps://github.com/AndrewKushnir
completedhttps://github.com/angular/angular/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
8600732https://github.com/angular/angular/commit/8600732b090a4c253eb89ffde6db3858e4a2021c
on Aug 1, 2022https://github.com/angular/angular/issues/35928#event-7103811882
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Sep 1, 2022https://github.com/angular/angular/issues/35928#issuecomment-1234487611
automatic conversation locking policyhttps://github.com/angular/angular/blob/8f24bc9443b3872fe095d9f7f77b308a361a13b4/docs/GITHUB_PROCESS.md#conversation-locking
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Sep 1, 2022https://github.com/angular/angular/issues/35928#event-7306705539
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular/issues/35928
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular/issues/35928
atscotthttps://github.com/atscott
area: routerhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20router%22
featureLabel used to distinguish feature request from other issueshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22feature%22
freq1: lowhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22freq1%3A%20low%22
BacklogNo due datehttps://github.com/angular/angular/milestone/82
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.