Skip to content

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

fix: global search issues

Ilian Sapundshievfd5b17a91c71
diff --git a/app/reducers/app.ts b/app/reducers/app.ts
index a74746d0d..991f382cd 100644
--- a/app/reducers/app.ts
+++ b/app/reducers/app.ts
@@ -1349,10 +1349,10 @@ export const actions = {
fsEntry.path,
fsEntry.isFile
);
- if (PlatformIO.haveObjectStoreSupport()) {
- entryForOpening.url = PlatformIO.getURLforPath(fsEntry.path);
- } else if (fsEntry.url) {
+ if (fsEntry.url) {
entryForOpening.url = fsEntry.url;
+ } else if (PlatformIO.haveObjectStoreSupport()) {
+ entryForOpening.url = PlatformIO.getURLforPath(fsEntry.path);
}
if (fsEntry.perspective) {
entryForOpening.perspective = fsEntry.perspective;
diff --git a/app/services/platform-io.ts b/app/services/platform-io.ts
index d612fa5d6..506cd818e 100644
--- a/app/services/platform-io.ts
+++ b/app/services/platform-io.ts
@@ -121,7 +121,7 @@ export default class PlatformIO {
return objectStoreAPI.getURLforPath(path);
}
// console.log('getURLforPath not supported');
- return path;
+ // return path;
};
static createDirectoryTree = (directoryPath: string): Object =>