Commit 2de71565 authored by Mark Florian's avatar Mark Florian

Merge branch 'mw-target-blank-fixes' into 'master'

Replace blank with _blank in target attribute

See merge request gitlab-org/gitlab!24575
parents 2403a2d6 b8808778
...@@ -307,7 +307,7 @@ export default { ...@@ -307,7 +307,7 @@ export default {
<a <a
v-if="titleLink" v-if="titleLink"
:href="titleLink" :href="titleLink"
target="blank" target="_blank"
rel="noopener noreferrer" rel="noopener noreferrer"
class="js-cluster-application-title" class="js-cluster-application-title"
>{{ title }}</a >{{ title }}</a
......
...@@ -285,7 +285,7 @@ export default { ...@@ -285,7 +285,7 @@ export default {
ref="viewButton" ref="viewButton"
v-gl-tooltip.hover v-gl-tooltip.hover
:href="diffFile.view_path" :href="diffFile.view_path"
target="blank" target="_blank"
class="view-file" class="view-file"
data-track-event="click_toggle_view_sha_button" data-track-event="click_toggle_view_sha_button"
data-track-label="diff_toggle_view_sha_button" data-track-label="diff_toggle_view_sha_button"
......
...@@ -166,7 +166,7 @@ export const setUrlFragment = (url, fragment) => { ...@@ -166,7 +166,7 @@ export const setUrlFragment = (url, fragment) => {
export function visitUrl(url, external = false) { export function visitUrl(url, external = false) {
if (external) { if (external) {
// Simulate `target="blank" rel="noopener noreferrer"` // Simulate `target="_blank" rel="noopener noreferrer"`
// See https://mathiasbynens.github.io/rel-noopener/ // See https://mathiasbynens.github.io/rel-noopener/
const otherWindow = window.open(); const otherWindow = window.open();
otherWindow.opener = null; otherWindow.opener = null;
......
...@@ -122,7 +122,7 @@ export default { ...@@ -122,7 +122,7 @@ export default {
</template> </template>
<template #cell(author)="{ value }"> <template #cell(author)="{ value }">
<gl-avatar-link v-gl-tooltip target="blank" :href="value.web_url" :title="value.name"> <gl-avatar-link v-gl-tooltip target="_blank" :href="value.web_url" :title="value.name">
<gl-avatar :size="24" :src="value.avatar_url" :entity-name="value.name" /> <gl-avatar :size="24" :src="value.avatar_url" :entity-name="value.name" />
</gl-avatar-link> </gl-avatar-link>
</template> </template>
......
...@@ -116,7 +116,7 @@ export default { ...@@ -116,7 +116,7 @@ export default {
<template v-else> <template v-else>
<div v-if="hasLegacyAppLabel" class="bs-callout bs-callout-warning mb-0 mt-0"> <div v-if="hasLegacyAppLabel" class="bs-callout bs-callout-warning mb-0 mt-0">
<span v-html="legacyLabelWarningMessage"></span> <span v-html="legacyLabelWarningMessage"></span>
<gl-link target="blank" :href="deployBoardsHelpPath"> <gl-link target="_blank" :href="deployBoardsHelpPath">
<strong>{{ __('More Information') }}</strong> <strong>{{ __('More Information') }}</strong>
</gl-link> </gl-link>
</div> </div>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment