add target="_blank" to external links in @see JSDoc tags#69594
Conversation
There was a problem hiding this comment.
The scope of the PR is wrong, it should be docs-infra. See for more https://github.com/angular/angular/blob/main/contributing-docs%2Fcommit-message-guidelines.md If I remember correctly there is no such scope as adev
Oops, I missed it. Thanks |
|
Deployed adev-preview for b90b0c9 to: https://ng-dev-previews-fw--pr-angular-angular-69594-adev-prev-9ofhpvbg.web.app Note: As new commits are pushed to this pull request, this link is updated after the preview is rebuilt. |
JeanMeche
left a comment
There was a problem hiding this comment.
Can you make sure to fix the unit tests
…tags
External links rendered via `@see {@link ...}` and `@see [label](url)`
were not opening in a new tab. The `getHtmlAdditionalLinks` function
now sets `target: '_blank'` on `LinkEntryRenderable` objects whose URL
is external, and `docs-pill-row.tsx` passes the `target` attribute to
the rendered anchor tag.
Fixes: angular#69593
External links rendered via
@see {@link ...}and@see [label](url)were not opening in a new tab. ThegetHtmlAdditionalLinksfunction now setstarget: '_blank'onLinkEntryRenderableobjects whose URL is external, anddocs-pill-row.tsxpasses thetargetattribute to the rendered anchor tag.Fixes: #69593