aboutsummaryrefslogtreecommitdiffstats
path: root/fatcat_scholar/templates/search.html
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-10-14 02:01:18 -0700
committerBryan Newbold <bnewbold@archive.org>2020-10-14 02:01:21 -0700
commitc40e9bc039b425b385a478cbbbc46df934c98961 (patch)
treec99a336b245fff0093714ed9b803340a3a6ee4ea /fatcat_scholar/templates/search.html
parent67104f3bb3d7cb21b57ed7f394154b91810faa3a (diff)
downloadfatcat-scholar-c40e9bc039b425b385a478cbbbc46df934c98961.tar.gz
fatcat-scholar-c40e9bc039b425b385a478cbbbc46df934c98961.zip
web: rel=noopener for outlinks
Via Lighthouse. Apparently destination pages can reach-back to the opening window via JS API. Weird! Note that instead of noreferrer, we have a meta tag to have off-domain (off-origin) links only include the origin name (eg, hostname) instead of full URL with query paths. So we don't forward user queries to non-archive.org domains.
Diffstat (limited to 'fatcat_scholar/templates/search.html')
-rw-r--r--fatcat_scholar/templates/search.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/fatcat_scholar/templates/search.html b/fatcat_scholar/templates/search.html
index 21d209f..dd7fcd6 100644
--- a/fatcat_scholar/templates/search.html
+++ b/fatcat_scholar/templates/search.html
@@ -124,10 +124,10 @@
<a href="{{ lang_prefix }}/search" class="ui primary button" style="margin: 0.5em;">{{ _("Start Over") }}</a>
</div>
<div class="inline">
- <a href="https://archive.org/search.php?sin=TXT&query={{ query.q|urlencode }}" target="_blank" class="ui button" style="margin: 0.5em;">Try archive.org</a>
- <a href="https://fatcat.wiki/search&q={{ query.q|urlencode }}" target="_blank" class="ui button" style="margin: 0.5em;">Try fatcat.wiki</a>
- <a href="https://www.semanticscholar.org/search?q={{ query.q|urlencode }}" target="_blank" class="ui button" style="margin: 0.5em;">Try Semantic Scholar</a>
- <a href="https://scholar.google.com/scholar?q={{ query.q|urlencode }}" target="_blank" class="ui button" style="margin: 0.5em;">Try Google Scholar</a>
+ <a href="https://archive.org/search.php?sin=TXT&query={{ query.q|urlencode }}" target="_blank" rel="noopener" class="ui button" style="margin: 0.5em;">Try archive.org</a>
+ <a href="https://fatcat.wiki/search&q={{ query.q|urlencode }}" target="_blank" rel="noopener" class="ui button" style="margin: 0.5em;">Try fatcat.wiki</a>
+ <a href="https://www.semanticscholar.org/search?q={{ query.q|urlencode }}" rel="noopener" target="_blank" rel="noopener" class="ui button" style="margin: 0.5em;">Try Semantic Scholar</a>
+ <a href="https://scholar.google.com/scholar?q={{ query.q|urlencode }}" target="_blank" rel="noopener" class="ui button" style="margin: 0.5em;">Try Google Scholar</a>
</div>
</div>
{% else %}