TagSpaces is an offline, open source, document manager with tagging support
fix: broken folder sharing path
Ilian Sapundshievc176630b8322
diff --git a/app/components/EntryProperties.tsx b/app/components/EntryProperties.tsxindex e9534c6d3..489ac47c1 100644--- a/app/components/EntryProperties.tsx+++ b/app/components/EntryProperties.tsx@@ -599,8 +599,10 @@ const EntryProperties = (props: Props) => {if (currentEntry.isFile && params.has('tsepath')) {const entryPath = params.get('tsepath');sharingLink = generateSharingLink(locationId, entryPath);- } else if (currentEntry.isFile && params.has('tsepath')) {- const dirPath = params.get('tsdpath');+ } else if (!currentEntry.isFile) {+ const dirPath = params.has('tsepath')+ ? params.get('tsepath')+ : currentEntry.path;sharingLink = generateSharingLink(locationId, undefined, dirPath);}}