Skip to content

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

fix: path to folder thumbnail

Ilian Sapundshiev33cd1377814d
diff --git a/app/perspectives/grid-perspective/components/GridPagination.tsx b/app/perspectives/grid-perspective/components/GridPagination.tsx
index 2b2858d13..bda25182a 100644
--- a/app/perspectives/grid-perspective/components/GridPagination.tsx
+++ b/app/perspectives/grid-perspective/components/GridPagination.tsx
@@ -299,10 +299,20 @@ function GridPagination(props: Props) {
PlatformIO.getDirSeparator()
);
- const folderTmbPath = getThumbFileLocationForDirectory(
+ let folderTmbPath = getThumbFileLocationForDirectory(
currentDirectoryPath,
PlatformIO.getDirSeparator()
);
+ if (PlatformIO.haveObjectStoreSupport() || PlatformIO.haveWebDavSupport()) {
+ folderTmbPath = PlatformIO.getURLforPath(folderTmbPath);
+ } else {
+ folderTmbPath = encodeURI(
+ folderTmbPath +
+ (props.lastBackgroundImageChange
+ ? '?' + props.lastBackgroundImageChange
+ : '')
+ );
+ }
let folderBgndPath = getBgndFileLocationForDirectory(
currentDirectoryPath,