mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user