Route is overridden with base href in Location #34466
Labels
area: router
freq2: medium
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
router: config matching/activation/validation
router: URL parsing/generation
state: confirmed
type: bug/fix
Milestone
馃悶 bug report
Affected Package
The issue is caused by package @angular/commonIs this a regression?
No
Description
I have next structure in my project:
APP_BASE_HREF
provided globally as value/a/
/article
When entering
/article
page, I expect to get redirect to/a/article
, but instead Location "helps" Router to get to/a/rticle
, thus gettingroute not found
error.馃敩 Minimal Reproduction
https://stackblitz.com/edit/angular-issue-repro2-bhrjmo馃敟 Exception or Error
馃實 Your Environment
Angular Version:
Anything else relevant?
It would be great to have Location service overridable so I can add some custom normalize logic, but I'm unable to do so since base href field inside Location is private
The text was updated successfully, but these errors were encountered: