diff --git a/NzbDrone.Web/Scripts/NzbDrone/AutoComplete.js b/NzbDrone.Web/Scripts/NzbDrone/AutoComplete.js
index 23cd012d5..bedd563ef 100644
--- a/NzbDrone.Web/Scripts/NzbDrone/AutoComplete.js
+++ b/NzbDrone.Web/Scripts/NzbDrone/AutoComplete.js
@@ -65,8 +65,7 @@ function bindSeriesAutoComplete(selector) {
.data("autocomplete")._renderItem = function (ul, item) {
return $("
")
.data("item.autocomplete", item)
- .append("" + item.DisplayedTitle + "")
- .append("" + item.Url + "
")
+ .append("" + item.DisplayedTitle + "" + item.Url + "
")
.appendTo(ul);
};
});
diff --git a/NzbDrone.Web/Views/AddSeries/Index.cshtml b/NzbDrone.Web/Views/AddSeries/Index.cshtml
index abc4711f5..5d28f460f 100644
--- a/NzbDrone.Web/Views/AddSeries/Index.cshtml
+++ b/NzbDrone.Web/Views/AddSeries/Index.cshtml
@@ -71,9 +71,10 @@
$('#addSeriesAccordion').accordion("activate", false);
});
- $(document).on('click', '.tvDbLink', function () {
+ $(document).on('click', '.tvDbLink', function (event) {
var url = $(this).text();
window.open(url, 'thetvdb');
+ event.preventDefault();
});
}
\ No newline at end of file