Adds missing rel="noopener noreferrer" to each link element with target="_blank" (#13959)

This commit is contained in:
Michael Abashian 2023-05-31 13:49:39 -04:00 committed by GitHub
parent d89cad0d9e
commit fbe202bdbf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
13 changed files with 18 additions and 4 deletions

View File

@ -99,7 +99,8 @@
"fieldName",
"splitButtonVariant",
"pageKey",
"textId"
"textId",
"rel"
],
"ignore": [
"Ansible",

View File

@ -112,6 +112,7 @@ function PageHeaderToolbar({
target="_blank"
href={`${getDocsBaseUrl(config)}/html/userguide/index.html`}
ouiaId="help-dropdown-item"
rel="noopener noreferrer"
>
{t`Help`}
</DropdownItem>,

View File

@ -322,6 +322,7 @@ function AdvancedSearch({
variant="plain"
target="_blank"
href={`${getDocsBaseUrl(config)}/html/userguide/search_sort.html`}
rel="noopener noreferrer"
>
<QuestionCircleIcon />
</Button>

View File

@ -258,6 +258,7 @@ function InstanceDetail({ setBreadcrumb, isK8s }) {
target="_blank"
variant="secondary"
dataCy="install-bundle-download-button"
rel="noopener noreferrer"
>
<DownloadIcon />
</Button>

View File

@ -43,6 +43,7 @@ function ConstructedInventoryHint() {
)}/html/userguide/inventories.html#constructed-inventories`}
component="a"
target="_blank"
rel="noopener noreferrer"
>
{t`View constructed inventory documentation here`}{' '}
<ExternalLinkAltIcon />

View File

@ -35,7 +35,7 @@ const helpText = () => ({
<a
href="https://docs.djangoproject.com/en/4.0/ref/settings/#std:setting-EMAIL_USE_TLS"
target="_blank"
rel="noreferrer"
rel="noopener noreferrer"
>{t`documentation`}</a>{' '}
<span>{t`for more information.`}</span>
</>

View File

@ -206,6 +206,7 @@ function SubscriptionDetail() {
href="https://www.redhat.com/contact"
variant="link"
target="_blank"
rel="noopener noreferrer"
isInline
>
contact us.

View File

@ -46,6 +46,7 @@ function AnalyticsStep() {
isInline
ouiaId="tower-documentation-link"
target="_blank"
rel="noopener noreferrer"
>
this Tower documentation page
</Button>
@ -116,6 +117,7 @@ function AnalyticsStep() {
target="_blank"
variant="secondary"
ouiaId="analytics-link"
rel="noopener noreferrer"
>
<Trans>Learn more about Automation Analytics</Trans>
</Button>

View File

@ -70,6 +70,7 @@ function SubscriptionStep() {
ouiaId="request-subscription-button"
target="_blank"
variant="secondary"
rel="noopener noreferrer"
>
{t`Request subscription`}
</Button>
@ -103,6 +104,7 @@ function SubscriptionStep() {
variant="link"
target="_blank"
ouiaId="subscription-allocations-link"
rel="noopener noreferrer"
isInline
>
subscription allocations
@ -127,6 +129,7 @@ function SubscriptionStep() {
href="https://access.redhat.com/management/subscription_allocations"
variant="link"
target="_blank"
rel="noopener noreferrer"
isInline
ouiaId="subscription-allocations-link"
>
@ -140,6 +143,7 @@ function SubscriptionStep() {
)}/html/userguide/import_license.html`}
variant="link"
target="_blank"
rel="noopener noreferrer"
ouiaId="import-license-link"
isInline
>

View File

@ -264,7 +264,7 @@ function SurveyQuestionForm({
config
)}/html/userguide/job_templates.html#surveys`}
target="_blank"
rel="noreferrer"
rel="noopener noreferrer"
>
{t`documentation`}
</a>{' '}

View File

@ -108,6 +108,7 @@ function VisualizerToolbar({
variant="plain"
component="a"
target="_blank"
rel="noopener noreferrer"
href={`${getDocsBaseUrl(
config
)}/html/userguide/workflow_templates.html#ug-wf-editor`}

View File

@ -56,7 +56,7 @@ const jtHelpTextStrings = () => ({
<a
href={`${getDocsBaseUrl(config)}/html/userguide/scheduling.html`}
target="_blank"
rel="noreferrer"
rel="noopener noreferrer"
>
{t`documentation`}
</a>{' '}

View File

@ -254,6 +254,7 @@ function Tooltip({
href={`${instanceDetail.related?.install_bundle}`}
target="_blank"
variant="secondary"
rel="noopener noreferrer"
>
<DownloadIcon />
</PFButton>