Skip to content

TagSpaces is an offline, open source, document manager with tagging support

fix: issue with persisting wrong url in the edited history list

Ilian Sapundshieve23de080355e
diff --git a/src/renderer/components/EntryContainer.tsx b/src/renderer/components/EntryContainer.tsx
index fd41f64e9..0f1bbaf8c 100644
--- a/src/renderer/components/EntryContainer.tsx
+++ b/src/renderer/components/EntryContainer.tsx
@@ -39,6 +39,7 @@ import {
extractContainingDirectoryPath,
getBackupFileLocation,
extractFileExtension,
+ generateSharingLink,
} from '@tagspaces/tagspaces-common/paths';
import ConfirmDialog from '-/components/dialogs/ConfirmDialog';
import PlatformIO from '-/services/platform-facade';
@@ -592,7 +593,7 @@ function EntryContainer() {
historyKeys.fileEditKey,
{
path: fileOpen.path,
- url: fileOpen.url,
+ url: generateSharingLink(fileOpen.url, fileOpen.path),
lid: fileOpen.locationId,
},
fileEditHistoryKey,