Skip to content

Commit c35b4b1

Browse files
authored
fix(search): avoid unneccesary double link navigation
Results in search responses which got an URL to be followed when clicked on it, are followed twice: First by the click event handler of a result and second by the native a link behavior
1 parent 2ddcc7b commit c35b4b1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/definitions/modules/search.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ $.fn.search = function(parameters) {
239239
}
240240
module.hideResults();
241241
if(href) {
242+
event.preventDefault();
242243
module.verbose('Opening search link found in result', $link);
243244
if(target == '_blank' || event.ctrlKey) {
244245
window.open(href);

0 commit comments

Comments
 (0)