fix(site): open TemplateBuilder template docs in new tab (#26589)

Mainly makes the template builder's external docs/registry links behave
consistently.

Includes some small changes to make copy consistent (sentence casing for
links + period after page header subtitle, sourced from
[Figma](https://www.figma.com/design/z1qkNiNIya2myaVW4kR6jP/Template-creation-builder?node-id=257-906&m=dev))

Also, `noreferrer` has automatically been applied to `target="_blank"`
links in major browsers since 2021 ([source
1](https://frontendmasters.com/blog/bone-up-html-2025/#you-probably-dont-need-noopener-noreferrer-on-links-anymore),
[source 2](https://stackoverflow.com/a/50709724/6432160))
This commit is contained in:
Andrew Aquino
2026-06-24 12:11:53 -07:00
committed by GitHub
parent e8bd5004a2
commit 63b9388c6c
5 changed files with 8 additions and 6 deletions
@@ -78,7 +78,7 @@ export const ModuleCard: React.FC<ModuleCardProps> = ({
target="_blank"
className="text-sm font-normal"
>
View Details
View details
</Link>
</div>
</div>
@@ -51,7 +51,6 @@ export const ModuleConfiguration: React.FC<ModuleConfigurationProps> = ({
<Link
href={detailsUrl}
target="_blank"
rel="noreferrer"
size="sm"
className="text-xs font-normal ml-1"
>
@@ -108,8 +108,12 @@ export const TemplateBuilderPageView: FC<TemplateBuilderPageViewProps> = ({
<PageHeader>
<PageHeaderTitle>Create new template</PageHeaderTitle>
<PageHeaderSubtitle>
A Terraform blueprint for reproducible workspaces
<Link href={docs("/admin/templates")} className="ml-1">
A Terraform blueprint for reproducible workspaces.
<Link
href={docs("/admin/templates")}
target="_blank"
className="ml-1"
>
View docs
</Link>
</PageHeaderSubtitle>
@@ -76,7 +76,7 @@ export const TemplateCard: React.FC<TemplateCardProps> = ({
target="_blank"
className="text-sm font-normal"
>
View Details
View details
</Link>
</div>
</div>
@@ -44,7 +44,6 @@ export const TemplateConfiguration: React.FC<TemplateConfigurationProps> = ({
<Link
href={detailsUrl}
target="_blank"
rel="noreferrer"
size="sm"
className="text-sm font-normal ml-1"
>