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.') },