Skip to content

Commit

Permalink
Fix preact-iso's weird encodeURI behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
zer0tonin committed Feb 14, 2024
1 parent 682d5c7 commit 9b6397b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/pages/Directory/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 != "") {
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 9b6397b

Please sign in to comment.