diff --git a/client/js/api.js b/client/js/api.js index d4705280..683d1783 100644 --- a/client/js/api.js +++ b/client/js/api.js @@ -176,7 +176,8 @@ class Api extends events.EventTarget { } _getFullUrl(url) { - return (config.apiUrl + '/' + url).replace(/([^:])\/+/g, '$1/'); + return (config.apiUrl + '/' + encodeURI(url)) + .replace(/([^:])\/+/g, '$1/'); } }