fix: shareUrl uses wrong origin

This commit is contained in:
Elias Schneider
2023-01-11 13:06:38 +01:00
parent 02e41e2437
commit f1b44f87fa
5 changed files with 25 additions and 10 deletions

View File

@@ -140,7 +140,7 @@ const Upload = () => {
.completeShare(createdShare.id)
.then(() => {
setisUploading(false);
showCompletedUploadModal(modals, createdShare);
showCompletedUploadModal(modals, createdShare, config.get("APP_URL"));
setFiles([]);
})
.catch(() =>
@@ -164,6 +164,7 @@ const Upload = () => {
modals,
{
isUserSignedIn: user ? true : false,
appUrl: config.get("APP_URL"),
allowUnauthenticatedShares: config.get(
"ALLOW_UNAUTHENTICATED_SHARES"
),