You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Location incorrectly handled when served from a base path containing regex-specific characters. #49179
P2The issue is important to a large percentage of users, with a workaroundarea: commonIssues related to APIs in the @angular/common packageregressionIndicates than the issue relates to something that worked in a previous versionstate: has PR
Which @angular/* package(s) are the source of the bug?
common, router
Is this a regression?
Yes
Description
When serving an Angular build from the file system (such as in Electron), if Angular is served from a path containing regex-syntax characters, the Angular router gets lost.
The bug was introduced in Angular 5.1.1 after this commit: #48489
Serving Angular from the following path would fail:
C:/Users/MyUser(Test)/my-project
Please provide a link to a minimal reproduction of the bug
No reproduction link as it is environment specific.
Please provide the exception or error you saw
When this happens, the Angular application goes blank and only the error "NG04002" is shown in console with nothing else going on.
Please provide the environment you discovered this bug in (run ng version)
P2The issue is important to a large percentage of users, with a workaroundarea: commonIssues related to APIs in the @angular/common packageregressionIndicates than the issue relates to something that worked in a previous versionstate: has PR
Activity
sankeerth125 commentedon Feb 23, 2023
fix(common): make Location.normalize() return the correct path when t…
angular-automatic-lock-bot commentedon Mar 30, 2023
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.