TagSpaces is an offline, open source, document manager with tagging support
fix e2e
Stanimir1c08a380ba04
diff --git a/src/renderer/hooks/DirectoryContentContextProvider.tsx b/src/renderer/hooks/DirectoryContentContextProvider.tsxindex eb22aa631..9d75f1262 100644--- a/src/renderer/hooks/DirectoryContentContextProvider.tsx+++ b/src/renderer/hooks/DirectoryContentContextProvider.tsx@@ -715,14 +715,18 @@ export const DirectoryContentContextProvider = ({const parentDirectory = extractParentDirectoryPath(currentDirectory.current.path,);- if (- !loc.path ||- parentDirectory.includes(cleanTrailingDirSeparator(loc.path))- ) {- return openDirectory(parentDirectory, undefined, loc);- } else {- showNotification(t('core:parentDirNotInLocation'), 'warning', true);- }+ resolveRelativePath(loc.path).then((locationPath) => {+ if (+ !locationPath ||+ parentDirectory.startsWith(cleanTrailingDirSeparator(locationPath))+ ) {+ //limit opening only from location+ return openDirectory(parentDirectory, undefined, loc);+ } else {+ // don't open dirs parent to location+ showNotification(t('core:parentDirNotInLocation'), 'warning', true);+ }+ });}} else {showNotification(t('core:firstOpenaFolder'), 'warning', true);