René's URL Explorer Experiment


Title: APP_BASE_HREF doesn't work with routes which starts with the same text part · Issue #45744 · angular/angular · GitHub

Open Graph Title: APP_BASE_HREF doesn't work with routes which starts with the same text part · Issue #45744 · angular/angular

X Title: APP_BASE_HREF doesn't work with routes which starts with the same text part · Issue #45744 · angular/angular

Description: Which @angular/* package(s) are the source of the bug? router Is this a regression? No Description If route starts with the same part as APP_BASE_HREF, the route becomes broken. E.g.: app.module { provide: APP_BASE_HREF, useValue: '/ru' ...

Open Graph Description: Which @angular/* package(s) are the source of the bug? router Is this a regression? No Description If route starts with the same part as APP_BASE_HREF, the route becomes broken. E.g.: app.module { ...

X Description: Which @angular/* package(s) are the source of the bug? router Is this a regression? No Description If route starts with the same part as APP_BASE_HREF, the route becomes broken. E.g.: app.module { ...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"APP_BASE_HREF doesn't work with routes which starts with the same text part","articleBody":"### Which @angular/* package(s) are the source of the bug?\r\n\r\nrouter\r\n\r\n### Is this a regression?\r\n\r\nNo\r\n\r\n### Description\r\n\r\nIf route starts with the same part as `APP_BASE_HREF`, the route becomes broken. E.g.:\r\n\r\napp.module\r\n```\r\n{\r\n      provide: APP_BASE_HREF,\r\n      useValue: '/ru'\r\n    }\r\n```\r\n\r\napp-routing\r\n```\r\n{\r\n    path: 'rules',\r\n    loadChildren: () => import('./pages/text-pages/rules/rules.module').then(m => m.RulesModule)\r\n  },\r\n```\r\n\r\nAnd if you try to navigate `example.com/rules` you will get `example.com/ru/les`\r\n\r\nPlease, take a look at the stackblitz reproduction below.\r\n\r\n### Please provide a link to a minimal reproduction of the bug\r\n\r\nhttps://stackblitz.com/edit/angular-ivy-68vpxc?file=src%2Fapp%2Fapp-routing.module.ts\r\n\r\n### Please provide the exception or error you saw\r\n\r\n```true\r\nERROR\r\nError: Uncaught (in promise): Error: Cannot match any routes. URL Segment: 'les'\r\nError: Cannot match any routes. URL Segment: 'les'\r\n```\r\n\r\n\r\n### Please provide the environment you discovered this bug in (run `ng version`)\r\n\r\n_No response_\r\n\r\n### Anything else?\r\n\r\n_No response_","author":{"url":"https://github.com/Dolgovec","@type":"Person","name":"Dolgovec"},"datePublished":"2022-04-24T12:51:45Z","url":"https://github.com/angular/angular/issues/45744"}

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:6da997a2-5f65-c3bb-df37-576461c9df37
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idDB42:25E63A:113B5E:17FBA9:6B04647B
html-safe-noncebdfc0fa115e1c7bafb0d58e8208427d92b4dc2528d7709fbdbcbc1bd5b31b001
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQjQyOjI1RTYzQToxMTNCNUU6MTdGQkE5OjZCMDQ2NDdCIiwidmlzaXRvcl9pZCI6Ijg2NDIxMjU0NDI5NDM1NzUxNjMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacca02a6dc0f637403c946deaf6e1ab3e94b0815b9b5c42fb5fea2e4dfa1f6dea3
hovercard-subject-tagissue:1213646570
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/45744/issue_layout
twitter:imagehttps://opengraph.githubassets.com/1b1ec653ae035efd086319f242803b48c4c35e87686dc648a18f52a39586c1ce/angular/angular/issues/45744
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/1b1ec653ae035efd086319f242803b48c4c35e87686dc648a18f52a39586c1ce/angular/angular/issues/45744
og:image:altWhich @angular/* package(s) are the source of the bug? router Is this a regression? No Description If route starts with the same part as APP_BASE_HREF, the route becomes broken. E.g.: app.module { ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameDolgovec
hostnamegithub.com
expected-hostnamegithub.com
None2d58451b4bcb73c33c67bfb6b28fb75fe6d5e279daf9b560fa4fd832f3d8c9a6
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
release03e114520787ad27289207f153520ef97461127c
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular/issues/45744#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F45744
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%2F45744
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/45744
Reloadhttps://github.com/angular/angular/issues/45744
Reloadhttps://github.com/angular/angular/issues/45744
angularhttps://github.com/angular
angularhttps://github.com/angular/angular
Codehttps://github.com/angular/angular
Issues842 (842)https://github.com/angular/angular/issues
Pull requests150 (150)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/45744
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/45744
APP_BASE_HREF doesn't work with routes which starts with the same text parthttps://github.com/angular/angular/issues/45744#top
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgenthttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22P3%22
area: commonIssues related to APIs in the @angular/common packagehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20common%22
area: routerhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20router%22
Backloghttps://github.com/angular/angular/milestone/82
https://github.com/Dolgovec
Dolgovechttps://github.com/Dolgovec
on Apr 24, 2022https://github.com/angular/angular/issues/45744#issue-1213646570
https://stackblitz.com/edit/angular-ivy-68vpxc?file=src%2Fapp%2Fapp-routing.module.tshttps://stackblitz.com/edit/angular-ivy-68vpxc?file=src%2Fapp%2Fapp-routing.module.ts
https://github.com/atscott
atscotthttps://github.com/atscott
on Apr 25, 2022https://github.com/angular/angular/issues/45744#issuecomment-1108848248
angular/packages/common/src/location/location.tshttps://github.com/angular/angular/blob/50004c143ba9b1e041c7b30caf98f6582d3d26d4/packages/common/src/location/location.ts#L301-L303
50004c1https://github.com/angular/angular/commit/50004c143ba9b1e041c7b30caf98f6582d3d26d4
angular/packages/common/src/location/location_strategy.tshttps://github.com/angular/angular/blob/50004c143ba9b1e041c7b30caf98f6582d3d26d4/packages/common/src/location/location_strategy.ts#L48-L53
50004c1https://github.com/angular/angular/commit/50004c143ba9b1e041c7b30caf98f6582d3d26d4
https://stackblitz.com/edit/angular-ivy-6wsoys?file=src%2Fapp%2Fapp.module.tshttps://stackblitz.com/edit/angular-ivy-6wsoys?file=src%2Fapp%2Fapp.module.ts
atscotthttps://github.com/atscott
area: commonIssues related to APIs in the @angular/common packagehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20common%22
area: routerhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20router%22
on Apr 25, 2022https://github.com/angular/angular/issues/45744#event-6492363457
ngbothttps://github.com/apps/ngbot
needsTriagehttps://github.com/angular/angular/milestone/83
on Apr 25, 2022https://github.com/angular/angular/issues/45744#event-6492363792
https://github.com/atscott
atscotthttps://github.com/atscott
on Apr 25, 2022https://github.com/angular/angular/issues/45744#issuecomment-1108852411
atscotthttps://github.com/atscott
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgenthttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22P3%22
on Apr 25, 2022https://github.com/angular/angular/issues/45744#event-6492387610
ngbothttps://github.com/apps/ngbot
needsTriagehttps://github.com/angular/angular/milestone/83
Backloghttps://github.com/angular/angular/milestone/82
on Apr 25, 2022https://github.com/angular/angular/issues/45744#event-6492387862
https://github.com/Dolgovec
Dolgovechttps://github.com/Dolgovec
on Apr 25, 2022https://github.com/angular/angular/issues/45744#issuecomment-1108958340
@atscotthttps://github.com/atscott
atscotthttps://github.com/atscott
on Dec 9, 2022https://github.com/angular/angular/issues/45744#event-8001101748
docs(common): Add note to location about investigating base href hand…https://github.com/atscott/angular/commit/f732b2ccc858205c7a552e4eaecdb7c4351ffadd
f732b2chttps://github.com/atscott/angular/commit/f732b2ccc858205c7a552e4eaecdb7c4351ffadd
jessicajaniukhttps://github.com/jessicajaniuk
on Dec 9, 2022https://github.com/angular/angular/issues/45744#event-8001878901
docs(common): Add note to location about investigating base href hand…https://github.com/angular/angular/commit/dcfbe22434abe671a0effcd0c71c1ec05320d719
dcfbe22https://github.com/angular/angular/commit/dcfbe22434abe671a0effcd0c71c1ec05320d719
docs(common): Add note to location about investigating base href hand…https://github.com/angular/angular/commit/126e798edfa317d5a64d896082d2d53e5ee2bfbc
126e798https://github.com/angular/angular/commit/126e798edfa317d5a64d896082d2d53e5ee2bfbc
constantanthttps://github.com/constantant
on Dec 10, 2022https://github.com/angular/angular/issues/45744#event-8006079751
fix(common): Update `Location` to get a normalized URL valid in case …https://github.com/constantant/angular/commit/ae0efb6a09af213e069d1fc92061949afca4f5f7
https://docs.github.com/articles/closing-issues-via-commit-messages
ae0efb6https://github.com/constantant/angular/commit/ae0efb6a09af213e069d1fc92061949afca4f5f7
jessicajaniukhttps://github.com/jessicajaniuk
completedhttps://github.com/angular/angular/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
d87285chttps://github.com/angular/angular/commit/d87285c363b3f892a5afe625f39f4713d350d2f8
on Dec 12, 2022https://github.com/angular/angular/issues/45744#event-8016735735
jessicajaniukhttps://github.com/jessicajaniuk
on Dec 12, 2022https://github.com/angular/angular/issues/45744#event-8016735881
fix(common): Update `Location` to get a normalized URL valid in case …https://github.com/angular/angular/commit/59c6bfb6324c5baf53b907afee9170e1ce81ddbc
https://docs.github.com/articles/closing-issues-via-commit-messages
59c6bfbhttps://github.com/angular/angular/commit/59c6bfb6324c5baf53b907afee9170e1ce81ddbc
constantanthttps://github.com/constantant
on Jan 10, 2023https://github.com/angular/angular/issues/45744#event-8195643364
fix(common): Update `Location` to get a normalized URL valid in case …https://github.com/constantant/angular/commit/5c3e4d692006dfbcb1661719fd53bdc029e8e98d
https://docs.github.com/articles/closing-issues-via-commit-messages
5c3e4d6https://github.com/constantant/angular/commit/5c3e4d692006dfbcb1661719fd53bdc029e8e98d
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Jan 12, 2023https://github.com/angular/angular/issues/45744#issuecomment-1380640885
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 Jan 12, 2023https://github.com/angular/angular/issues/45744#event-8212998433
AndrewKushnirhttps://github.com/AndrewKushnir
on Jan 12, 2023https://github.com/angular/angular/issues/45744#event-8214866372
fix(common): Update `Location` to get a normalized URL valid in case …https://github.com/angular/angular/commit/8802b4aab9600870f3e09f198c993845587e9622
https://docs.github.com/articles/closing-issues-via-commit-messages
8802b4ahttps://github.com/angular/angular/commit/8802b4aab9600870f3e09f198c993845587e9622
fix(common): Update `Location` to get a normalized URL valid in case …https://github.com/angular/angular/commit/68ce4f6ab495f78858281b902e6433fe90ed6dbf
https://docs.github.com/articles/closing-issues-via-commit-messages
68ce4f6https://github.com/angular/angular/commit/68ce4f6ab495f78858281b902e6433fe90ed6dbf
trekladyonehttps://github.com/trekladyone
on Feb 1, 2023https://github.com/angular/angular/issues/45744#event-8415361069
fix(common): Update `Location` to get a normalized URL valid in case …https://github.com/trekladyone/angular/commit/5bdde06304e363f3b0b773d8c30c67f15cea191c
https://docs.github.com/articles/closing-issues-via-commit-messages
5bdde06https://github.com/trekladyone/angular/commit/5bdde06304e363f3b0b773d8c30c67f15cea191c
fix(common): Update `Location` to get a normalized URL valid in case …https://github.com/trekladyone/angular/commit/58b22906704b28620c7ce9e94152373a482186ea
https://docs.github.com/articles/closing-issues-via-commit-messages
58b2290https://github.com/trekladyone/angular/commit/58b22906704b28620c7ce9e94152373a482186ea
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular/issues/45744
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular/issues/45744
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgenthttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22P3%22
area: commonIssues related to APIs in the @angular/common packagehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20common%22
area: routerhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20router%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

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.