Skip to content

Commit

Permalink
fix path encoding spencerwooo#97
Browse files Browse the repository at this point in the history
  • Loading branch information
0wQ authored Jul 22, 2021
1 parent 9d95de2 commit 5216e92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/folderView.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export async function renderFolderView(items, path, request) {
const item = (icon, fileName, fileAbsoluteUrl, size, emojiIcon) =>
el(
'a',
[`href="${fileAbsoluteUrl}"`, 'class="item"', size ? `size="${size}"` : ''],
[`href="${fileAbsoluteUrl.replace(/#/g, '%23')}"`, 'class="item"', size ? `size="${size}"` : ''],
(emojiIcon ? el('i', ['style="font-style: normal"'], emojiIcon) : el('i', [`class="${icon}"`], '')) +
fileName +
el('div', ['style="flex-grow: 1;"'], '') +
Expand Down

0 comments on commit 5216e92

Please sign in to comment.