Repository navigation
[Backport 21.2.X ] fix(@angular/build): serialize server manifest asset paths - #34532
alan-agius4 merged 2 commits into
Conversation
Serialize the values embedded in the generated server manifests with JSON.stringify, so a prerendered route such as ssg/customer's-choice no longer produces an invalid manifest.
There was a problem hiding this comment.
Code Review
This pull request updates the Angular server application manifest generation to use JSON.stringify instead of direct string interpolation for asset paths, hashes, base hrefs, and entry points. This ensures that paths containing JavaScript string delimiters, such as single quotes, are correctly serialized and do not cause syntax errors in the generated executable manifest. Unit and end-to-end tests have been added to verify this behavior. As there are no review comments, no additional feedback is provided.
|
This PR was merged into the repository. The changes were merged into the following branches:
|
|
This pull request has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
backport of #34493