fix filename not recognized in generated custom link (#612)

This commit is contained in:
aidenlx 2022-04-21 19:18:28 +08:00 committed by GitHub
parent a83c173eba
commit c8eabcbe11
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -111,13 +111,13 @@ export default function CustomEmbedLinkMenu({
/>
<LinkContainer
title={t('Customised')}
value={`${getBaseUrl()}/api/name/${name}/?path=${readablePath}${
value={`${getBaseUrl()}/api/name/${name}?path=${readablePath}${
hashedToken ? `&odpt=${hashedToken}` : ''
}`}
/>
<LinkContainer
title={t('Customised and encoded')}
value={`${getBaseUrl()}/api/name/${name}/?path=${path}${hashedToken ? `&odpt=${hashedToken}` : ''}`}
value={`${getBaseUrl()}/api/name/${name}?path=${path}${hashedToken ? `&odpt=${hashedToken}` : ''}`}
/>
</div>
</div>