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 |
||
|---|---|---|
| .. | ||
| block-transforms.mts | ||
| class-transforms.mts | ||
| cli-transforms.mts | ||
| code-transforms.mts | ||
| constant-transforms.mts | ||
| decorator-transforms.mts | ||
| enum-transforms.mts | ||
| format-code.mts | ||
| function-transforms.mts | ||
| initializer-api-functions-transform.mts | ||
| interface-transforms.mts | ||
| jsdoc-transforms.mts | ||
| member-transforms.mts | ||
| module-name.mts | ||
| params-transforms.mts | ||
| reference-section-id.mts | ||
| repo.mts | ||
| type-alias-transforms.mts | ||
| url-transforms.mts | ||