We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1df8c2d commit e985993Copy full SHA for e985993
static/search.js
@@ -523,7 +523,7 @@ var Search = Control.extend({
523
var $a = $(this);
524
var isLocal = this.hostname === location.hostname;
525
var isRelative = this.getAttribute('href').indexOf(location.hostname) === -1;
526
- if(this.hostname !== location.hostname || this.protocol !== location.protocol){
+ if(!isLocal || this.protocol !== location.protocol){
527
$a.attr('target', '_blank');
528
}
529
if(isLocal && isRelative){
0 commit comments