XW-2277 | data-image-key is already encoded with urlencode()

This commit is contained in:
Igor Rogatty 2016-11-04 13:00:41 +01:00
parent bcc409483a
commit 3dee529ca8

View file

@ -6,7 +6,7 @@
$content.find('.portable-infobox .pi-image > a.image').on('click', function () {
var $anchor = $(this),
fileName = $anchor.children('.pi-image-thumbnail').data('image-key'),
href = window.wgArticlePath.replace(/\$1/, 'File:' + encodeURIComponent(fileName));
href = window.wgArticlePath.replace(/\$1/, 'File:' + fileName);
$anchor.attr('href', href);
});