From 29a33fc27f455d07cb307b6e4bcab067eeee1dc6 Mon Sep 17 00:00:00 2001 From: Rahul Date: Sun, 14 Dec 2014 01:04:47 -0800 Subject: [PATCH] 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. --- docs/client/full-api/docs.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/docs/client/full-api/docs.js b/docs/client/full-api/docs.js index 7e5a44d8c5..ddce65b0ef 100644 --- a/docs/client/full-api/docs.js +++ b/docs/client/full-api/docs.js @@ -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;