From 778666b7b4c554e499a373ca24451918b9b7f38b Mon Sep 17 00:00:00 2001 From: spencerwooo Date: Mon, 23 Aug 2021 14:34:38 +0100 Subject: [PATCH] do not encode raw url to clipboard, fix #61 --- components/FileListing.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/FileListing.tsx b/components/FileListing.tsx index b942506..3880a30 100644 --- a/components/FileListing.tsx +++ b/components/FileListing.tsx @@ -205,7 +205,7 @@ const FileListing: FunctionComponent<{ query?: ParsedUrlQuery }> = ({ query }) = render: , onClick: i => { navigator.clipboard.writeText( - i.alt ? `${getBaseUrl()}/api?path=${encodeURIComponent(path + '/' + i.alt)}&raw=true` : '' + i.alt ? `${getBaseUrl()}/api?path=${path + '/' + i.alt}&raw=true` : '' ) toast.success('Copied image permanent link to clipboard.') },