-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added rel="noopener" to target="_blank" hrefs #327
Conversation
But maybe only external URL needs this property? |
Yes but it can't hurt to add to internal URLs , since just replacing all the _blanks was the easiest solution |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not entirely related to the topic but we need to change that.
<a target="_blank" href="https://twitter.com/gogitservice"><i class="fa fa-twitter"></i><span class="sr-only">Twitter</span></a> | ||
<a target="_blank" href="http://weibo.com/gogschina"><i class="fa fa-weibo"></i><span class="sr-only">Sina Weibo</span></a> | ||
<a target="_blank" rel="noopener" href="https://github.com/go-gitea/gitea"><i class="fa fa-github-square"></i><span class="sr-only">GitHub</span></a> | ||
<a target="_blank" rel="noopener" href="https://twitter.com/gogitservice"><i class="fa fa-twitter"></i><span class="sr-only">Twitter</span></a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to drop that
<a target="_blank" href="http://weibo.com/gogschina"><i class="fa fa-weibo"></i><span class="sr-only">Sina Weibo</span></a> | ||
<a target="_blank" rel="noopener" href="https://github.com/go-gitea/gitea"><i class="fa fa-github-square"></i><span class="sr-only">GitHub</span></a> | ||
<a target="_blank" rel="noopener" href="https://twitter.com/gogitservice"><i class="fa fa-twitter"></i><span class="sr-only">Twitter</span></a> | ||
<a target="_blank" rel="noopener" href="http://weibo.com/gogschina"><i class="fa fa-weibo"></i><span class="sr-only">Sina Weibo</span></a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This as well
@@ -113,7 +113,7 @@ | |||
<i class="octicon octicon-settings"></i> | |||
{{.i18n.Tr "your_settings"}}<!-- Your settings --> | |||
</a> | |||
<a class="item" target="_blank" href="https://gogs.io/docs" rel="noreferrer"> | |||
<a class="item" target="_blank" rel="noopener" href="https://gogs.io/docs" rel="noreferrer"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -137,7 +137,7 @@ | |||
|
|||
{{else}} | |||
|
|||
<a class="item" target="_blank" href="https://gogs.io/docs" rel="noreferrer">{{.i18n.Tr "help"}}</a> | |||
<a class="item" target="_blank" rel="noopener" href="https://gogs.io/docs" rel="noreferrer">{{.i18n.Tr "help"}}</a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above
@@ -20,15 +20,15 @@ | |||
<i class="octicon octicon-flame"></i> Einfach zu installieren | |||
</h1> | |||
<p class="large"> | |||
Starte einfach <a target="_blank" href="https://gogs.io/docs/installation/install_from_binary.html">die Anwendung</a> für deine Plattform. Gitea gibt es auch für <a target="_blank" href="https://github.com/go-gitea/gitea/tree/master/docker">Docker</a>, <a target="_blank" href="https://github.com/geerlingguy/ansible-vagrant-examples/tree/master/gogs">Vagrant</a> oder als <a target="_blank" href="https://gogs.io/docs/installation/install_from_packages.html">Installationspaket</a>. | |||
Starte einfach <a target="_blank" rel="noopener" href="https://gogs.io/docs/installation/install_from_binary.html">die Anwendung</a> für deine Plattform. Gitea gibt es auch für <a target="_blank" rel="noopener" href="https://github.com/go-gitea/gitea/tree/master/docker">Docker</a>, <a target="_blank" rel="noopener" href="https://github.com/geerlingguy/ansible-vagrant-examples/tree/master/gogs">Vagrant</a> oder als <a target="_blank" rel="noopener" href="https://gogs.io/docs/installation/install_from_packages.html">Installationspaket</a>. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above
@@ -43,7 +43,7 @@ | |||
<div class="ui attached left aligned segment"> | |||
<h4 class="ui header"> | |||
{{.i18n.Tr "repo.issues.label_templates.title"}} | |||
<a target="_blank" | |||
<a target="_blank" rel="noopener" | |||
href="https://discuss.gogs.io/t/how-to-use-predefined-label-templates/599"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This link also won't work for us
LGTM |
LGTM |
Partially fixes #315
I've just ran a replace on gitea, replacing
target="_blank"
withtarget="_blank" rel="noopener"