From 9b6397b1d09f80075754ad1f695664ac2179c6e5 Mon Sep 17 00:00:00 2001 From: Alice GG Date: Wed, 14 Feb 2024 23:32:46 +0100 Subject: [PATCH] Fix preact-iso's weird encodeURI behaviour --- frontend/src/pages/Directory/index.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/pages/Directory/index.jsx b/frontend/src/pages/Directory/index.jsx index 3d553bd..0675f4d 100644 --- a/frontend/src/pages/Directory/index.jsx +++ b/frontend/src/pages/Directory/index.jsx @@ -79,7 +79,7 @@ const Directory = () => { if (location.path == "/") { document.title = `Mikochi`; } else { - document.title = `Mikochi - ${location.path}/`; + document.title = `Mikochi - ${decodeURI(location.path)}/`; } if (searchQuery != "") { @@ -122,7 +122,7 @@ const Directory = () => { {fileInfos.sort(sorting[compare]).map((fileInfo, i) => { let filePath; if (searchQuery == "" && location.path != "/") { - filePath = `${location.path}/${fileInfo.path}`; + filePath = `${decodeURI(location.path)}/${fileInfo.path}`; } else { filePath = fileInfo.path; }