TagSpaces is an offline, open source, document manager with tagging support
fix: issue with navigation to parent folder
Ilian Sapundshiev3176958db53b
diff --git a/src/renderer/hooks/DirectoryContentContextProvider.tsx b/src/renderer/hooks/DirectoryContentContextProvider.tsxindex f76935dc7..df3995764 100644--- a/src/renderer/hooks/DirectoryContentContextProvider.tsx+++ b/src/renderer/hooks/DirectoryContentContextProvider.tsx@@ -710,9 +710,12 @@ export const DirectoryContentContextProvider = ({currentDirectory.current.path,);resolveRelativePath(loc.path).then((locationPath) => {+ const normalizedLocationPath = cleanFrontDirSeparator(+ cleanTrailingDirSeparator(locationPath),+ );if (- !locationPath ||- parentDirectory.startsWith(cleanTrailingDirSeparator(locationPath))+ !normalizedLocationPath ||+ parentDirectory.startsWith(normalizedLocationPath)) {//limit opening only from locationreturn openDirectory(parentDirectory, undefined, loc);