Dot segments from path not removed #27929
Labels
area: router
freq1: low
P5
The team acknowledges the request but does not plan to address it, it remains open for discussion
router: URL parsing/generation
state: confirmed
type: bug/fix
Milestone
馃悶 bug report
Affected Package
@angular/router
Is this a regression?
No
Description
By RFC3986 (https://tools.ietf.org/html/rfc3986#page-33) dot segments should be removed from path.
When accessing
localhost:4200/segment/./segment
by browser navigator, browser strips the dot segments and Angular router recieveslocalhost:4200/segment/segment
. Everything works as expected.When programmatically routing to
'./segment/./segment'
, Angular throws an error (404).Browser navigator still shows URI with dot segments stripped (
localhost:4200/segment/segment
).馃敩 Minimal Reproduction
https://stackblitz.com/edit/angular-d2kk5q?file=src%2Findex.html
馃敟 Exception or Error
Cannot match any routes. URL Segment: 'segment/./segment'
馃實 Your Environment
Angular Version:
7.0.1
Extra
I'm not sure if I would call this a bug, but it's definitely not consistent with browser routes.
The text was updated successfully, but these errors were encountered: