RouteBinder will open external links in new tab

pull/3113/head
Mark McDowall 12 years ago
parent 8274cb30cf
commit 0a32079922

@ -46,6 +46,11 @@ define(['app'], function () {
if (!href.startsWith('http')) { if (!href.startsWith('http')) {
NzbDrone.Router.navigate(href, { trigger: true }); NzbDrone.Router.navigate(href, { trigger: true });
} }
else {
//Open in new tab
window.open(href, '_blank');
}
} }
}; };

Loading…
Cancel
Save