Skip to content

Commit

Permalink
Explicit target for mirrors
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaifroid committed Dec 2, 2024
1 parent 539aea5 commit bd79788
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/js/lib/kiwixServe.js
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ function requestXhttpData (URL, lang, subj, kiwixDate) {
'<p style="color:salmon;">Unable to access the server. Please see message below for reason.</p>' +
'<p>Try one of these mirror links (opens in a new browser window):</p><ul>';
params.kiwixDownloadMirrors.forEach(function (mirror) {
downloadLinks.innerHTML += '<li class="console"><a href="' + mirror + '"' + target + '>' + mirror.replace(/^([^/]+\/\/[^/]+).*/, '$1') + '</a></li>';
downloadLinks.innerHTML += '<li class="console"><a href="' + mirror + '" target="_blank">' + mirror.replace(/^([^/]+\/\/[^/]+).*/, '$1') + '</a></li>';
});
downloadLinks.innerHTML += '</ul></div><br />';
}
Expand Down

0 comments on commit bd79788

Please sign in to comment.