mirror of
https://github.com/lidarr/Lidarr
synced 2024-12-26 17:47:08 +00:00
RouteBinder will open external links in new tab
This commit is contained in:
parent
8274cb30cf
commit
0a32079922
1 changed files with 5 additions and 0 deletions
|
@ -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…
Reference in a new issue