TagSpaces is an offline, open source, document manager with tagging support
fix navigating to parent folder on cordova
Ilian Sapundshievdbee07ce2816
diff --git a/app/reducers/app.js b/app/reducers/app.jsindex 20a597941..20d74c042 100644--- a/app/reducers/app.js+++ b/app/reducers/app.js@@ -561,9 +561,8 @@ export const actions = {if (currentDirectoryPath) {const dirSep = PlatformIO.haveObjectStoreSupport() ? '/' : AppConfig.dirSeparator;const parentDirectory = extractParentDirectoryPath(currentDirectoryPath, dirSep);- // console.log('parentDirectory: ' + parentDirectory);- // console.log('currentDirectoryPath: ' + currentDirectoryPath);- if (parentDirectory.startsWith(currentLocationPath)) {+ // console.log('parentDirectory: ' + parentDirectory + ' - currentLocationPath: ' + currentLocationPath);+ if (parentDirectory.includes(currentLocationPath)) {dispatch(actions.loadDirectoryContent(parentDirectory));} else {dispatch(actions.showNotification(i18n.t('core:parentDirNotInLocation'), 'warning', true));