Don't force external links to open in a new tab

Overriding user preference is a bad idea from a usability point of view. Just allow people to decide for themselves whether they want to navigate away to another page or open the link in a new tab using the controls provided them by the browser (eg. cmd-click, or the options in the right click menu).

This also fixes the situation where someone might want to open an external link in the same tab, which is currently made impossible.
This commit is contained in:
Rahul
2014-12-14 01:04:47 -08:00
parent 43037f7c37
commit 29a33fc27f

View File

@@ -1,9 +1,3 @@
Meteor.startup(function () {
// Make external links open in a new tab.
// XXX doesn't work in multipage
$('a:not([href^="#"])').attr('target', '_blank');
});
check_links = function() {
var body = document.body.innerHTML;