mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-11-27 17:40:06 +00:00
File with percentage sign in file name does not open
Invoking encodeURI on the imageFileTitle makes sure that a "%" character is properly URL-escaped. Bug: T337540 Change-Id: I538b7f813b546134848e93cea4744de8f4da9e90
This commit is contained in:
parent
993936420c
commit
ef53ab0834
|
@ -43,6 +43,6 @@
|
|||
* @return {string} the location hash
|
||||
* @member mw.mmv
|
||||
*/
|
||||
getMediaHash: ( imageFileTitle ) => `#/media/${imageFileTitle}`
|
||||
getMediaHash: ( imageFileTitle ) => `#/media/${encodeURI( imageFileTitle )}`
|
||||
};
|
||||
}() );
|
||||
|
|
Loading…
Reference in a new issue