Sitelet https://github.com/angular/angular/pull/68973
Skip to content

refactor(platform-server): extract parseUrl regex and add comments for URL parsing behavior - #68973

Closed
alan-agius4 wants to merge 1 commit into
angular:mainfrom
alan-agius4:followup-server-urls
Closed

alan-agius4 wants to merge 1 commit into
angular:mainfrom
alan-agius4:followup-server-urls

Conversation

@alan-agius4

@alan-agius4 alan-agius4 commented May 28, 2026 •

Copy link
Copy Markdown
Contributor

Extracts the regular expression for matching malformed absolute URLs to a module-scoped constant in url.ts.

Additionally, adds comprehensive inline documentation to clarify:

  • The path normalization behavior of LEADING_SLASHES_REGEX which collapses consecutive slashes and backslashes.
  • The rationale for using 'http://localhost' as the fallback base URL for virtual document initialization in server.ts.

…r URL parsing behavior

Extracts the regular expression for matching malformed absolute URLs to a module-scoped constant in url.ts.

Additionally, adds comprehensive inline documentation to clarify:
- The path normalization behavior of LEADING_SLASHES_REGEX which collapses consecutive slashes and backslashes.
- The rationale for using 'http://localhost' as the fallback base URL for virtual document initialization in server.ts.
@alan-agius4
alan-agius4 requested a review from AndrewKushnir May 28, 2026 07:18
@alan-agius4 alan-agius4 added action: review The PR is still awaiting reviews from at least one requested reviewer target: patch This PR is targeted for the next patch release labels May 28, 2026
@angular-robot angular-robot Bot added the area: server Issues related to server-side rendering label May 28, 2026
@ngbot ngbot Bot added this to the Backlog milestone May 28, 2026
@alan-agius4

Copy link
Copy Markdown
Contributor Author

cartetaker note g3 failure is unrelated.

@alan-agius4 alan-agius4 added the merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note label May 28, 2026
pkozlowski-opensource pushed a commit that referenced this pull request Jun 1, 2026
…relative URLs

Backports the security fixes from:

- #68973

- #69018
pkozlowski-opensource pushed a commit that referenced this pull request Jun 2, 2026
…relative URLs

Backports the security fixes from:

- #68973

- #69018
@angular-automatic-lock-bot

Copy link
Copy Markdown

This pull request 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.

@angular-automatic-lock-bot angular-automatic-lock-bot Bot locked and limited conversation to collaborators Jun 28, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: review The PR is still awaiting reviews from at least one requested reviewer area: server Issues related to server-side rendering merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant