mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
CLI option descriptions are sourced from `@angular/cli` schema JSON files, several of which contain absolute `https://angular.dev/...` URLs in their `description` text. Those URLs render with the external-link icon and push preview users out to production when viewed on `next.angular.dev` or other dev previews. The path bypasses the existing `link.mts` ban on absolute angular.dev links because option descriptions go through `marked.parse` directly, without `AdevDocsRenderer`. Rewrite the rendered hrefs whose values begin with `https://angular.dev/` (or the `http:` variant) to root-relative paths so the resulting anchors route through Angular's Router and resolve against the active deployment. Subdomains such as `next.angular.dev/...` are intentionally not rewritten because they refer to genuinely different deployments. Closes #68795 |
||
|---|---|---|
| .. | ||
| components | ||
| directives | ||
| icons | ||
| interfaces | ||
| pipeline | ||
| pipes | ||
| providers | ||
| services | ||
| styles | ||
| testing | ||
| utils | ||
| BUILD.bazel | ||
| defaults.bzl | ||
| index.bzl | ||
| index.ts | ||
| package.json | ||
| tsconfig-test.json | ||
| tsconfig.json | ||