mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-10-30 07:22:35 +01:00
Fixed: ctrl + clicking links will open in a new tab
This commit is contained in:
parent
2711cd6afa
commit
b538b450f5
@ -49,10 +49,16 @@ define(
|
||||
}
|
||||
|
||||
if (!href.startsWith('http')) {
|
||||
if (event.ctrlKey) {
|
||||
window.open(href, '_blank');
|
||||
}
|
||||
|
||||
else {
|
||||
var relativeHref = href.replace(StatusModel.get('urlBase'), '');
|
||||
|
||||
Backbone.history.navigate(relativeHref, { trigger: true });
|
||||
}
|
||||
}
|
||||
else if (href.contains('#')) {
|
||||
//Open in new tab without dereferer (since it doesn't support fragments)
|
||||
window.open(href, '_blank');
|
||||
|
Loading…
Reference in New Issue
Block a user