- use encodeURI in $.load so the title/entry name can contain space

This commit is contained in:
Alex Ling 2020-02-15 16:58:43 +00:00
parent 87255e8996
commit b176da4c29

View File

@ -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');