benjaminp / httpswatch

https://httpswatch.com
MIT License
99 stars 39 forks source link

Open links in a new tab #92

Closed SecureUtah closed 8 years ago

SecureUtah commented 8 years ago

This is personal preference, but I (almost) always want links to open in a new tab so that I can continue reading the website and then look at the opened links as needed. This is especially useful for the SSL Labs reports that can take a minute or so to finish - it's easier to let them load in another tab while the visitor continues to look through the rest of the site.

In my version I added target="_blank" to all the site links and SSL Labs links by editing these lines:

listing.html.jinja <span class="site-domain">(<a href="https://{{ site.domain }}" target="_blank">{{ site.domain }}</a>)</span>

check_https.py grade_msg = "<a href=\"https://www.ssllabs.com/ssltest/analyze.html?d={}\" target=\"_blank\">SSL Labs grade</a> is " + info.ssllabs_grade + "."

msg += "(<a href=\"https://www.ssllabs.com/ssltest/analyze.html?d={}\" target=\"_blank\">SSL Labs report</a>)"