From b176da4c2919ca0eb3971eee1da63e9a74419f4c Mon Sep 17 00:00:00 2001 From: Alex Ling Date: Sat, 15 Feb 2020 16:58:43 +0000 Subject: [PATCH] - use encodeURI in $.load so the title/entry name can contain space --- public/js/reader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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');