summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjakeburden <jburden@gitlab.com>2019-08-23 11:24:00 -0400
committerjakeburden <jburden@gitlab.com>2019-09-02 12:09:12 -0400
commit14597d129fdb035b30890aa2ad5c9a0ee3e70807 (patch)
treede452988f6e738f121c8027d924387d81d5f449a
parentabe5d3528f2b1d1d4e3b44637cb4807415c6748d (diff)
downloadgitlab-ce-14597d129fdb035b30890aa2ad5c9a0ee3e70807.tar.gz
Add attributes to securely open external links
-rw-r--r--app/views/projects/pages/_list.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/pages/_list.html.haml b/app/views/projects/pages/_list.html.haml
index 2427b4d7611..ae8e8aeabc9 100644
--- a/app/views/projects/pages/_list.html.haml
+++ b/app/views/projects/pages/_list.html.haml
@@ -12,7 +12,7 @@
.domain-status.ci-status-icon.has-tooltip{ class: "ci-status-icon-#{status}", title: tooltip }
= sprite_icon("status_#{status}", size: 16 )
.domain-name
- = link_to domain.url do
+ = link_to domain.url, target: :_blank, rel: 'noopener noreferrer' do
= domain.url
= icon('external-link')
- if domain.subject