Skip to content

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

fix: issue with using about:blank in firefox by directory properties

Ilian Sapundshiev2e2b7b2ba0b8
diff --git a/app/components/FileView.tsx b/app/components/FileView.tsx
index 36e9afd95..9eada6969 100644
--- a/app/components/FileView.tsx
+++ b/app/components/FileView.tsx
@@ -84,7 +84,7 @@ const FileView = (props: Props) => {
(openedFile.shouldReload === true ? '&t=' + new Date().getTime() : '');
}
} else {
- fileOpenerURL = 'about:blank';
+ fileOpenerURL = '';
}
return (
<div
diff --git a/app/services/utils-io.ts b/app/services/utils-io.ts
index 96aba16d7..68a4d5895 100644
--- a/app/services/utils-io.ts
+++ b/app/services/utils-io.ts
@@ -340,7 +340,7 @@ export function findExtensionsForEntry(
).toLowerCase();
const viewingExtensionPath = isFile
? findExtensionPathForId('@tagspaces/extensions/text-viewer')
- : 'about:blank';
+ : '';
const fileForOpening: OpenedEntry = {
path: entryPath,
viewingExtensionPath,