Skip to content

Commit

Permalink
fix: encode index URI for special characters
Browse files Browse the repository at this point in the history
  • Loading branch information
dityaaa authored Sep 2, 2024
1 parent 5ca34b5 commit d7053a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function groupFilesByDirectories(globs, files) {
const fileName = parts[parts.length - 1]
current[fileName] = {
name: fileName,
href: file,
href: encodeURI(file),
}
}
})
Expand Down

0 comments on commit d7053a8

Please sign in to comment.