mirror of
https://github.com/Universal-Omega/PortableInfobox.git
synced 2024-11-15 20:09:44 +00:00
XW-2277 | data-image-key is already encoded with urlencode()
This commit is contained in:
parent
bcc409483a
commit
3dee529ca8
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue