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