Skip to content

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

fix navigation to parent on windows

Ilian Sapundshiev8d355925b472
diff --git a/app/reducers/app.js b/app/reducers/app.js
index 88bca3da6..307977608 100644
--- a/app/reducers/app.js
+++ b/app/reducers/app.js
@@ -550,7 +550,10 @@ export const actions = {
const currentLocationPath = normalizePath(getCurrentLocationPath(state));
if (currentDirectoryPath) {
- const parentDirectory = extractParentDirectoryPath(currentDirectoryPath);
+ const dirSep = PlatformIO.haveObjectStoreSupport() ? '/' : AppConfig.dirSeparator;
+ const parentDirectory = extractParentDirectoryPath(currentDirectoryPath, dirSep);
+ // console.log('parentDirectory: ' + parentDirectory);
+ // console.log('currentDirectoryPath: ' + currentDirectoryPath);
if (parentDirectory.startsWith(currentLocationPath)) {
dispatch(actions.loadDirectoryContent(parentDirectory));
} else {