diff --git a/public/js/reader.js b/public/js/reader.js index ec8ab32..028b057 100644 --- a/public/js/reader.js +++ b/public/js/reader.js @@ -38,7 +38,7 @@ $(function() { $.get(lastURL); return; } - $('#hidden').load(nextURL + ' .uk-container', function(res, status, xhr){ + $('#hidden').load(encodeURI(nextURL) + ' .uk-container', function(res, status, xhr){ if (status === 'error') console.log(xhr.statusText); if (status === 'success') { console.log(nextURL + ' loaded');