Skip to content

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

fix: missing thumbnails in s3 search results

Ilian Sapundshieva280064b006b
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 5ff93b04f..820cd874b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,7 @@
# Changelog
+> Starting from version 4 of the TagSpaces the changelog was moved to the [what's new page](https://www.tagspaces.org/whatsnew/) of the official project website.
+
## Version 3.11.6 / 2021.08.31
### 🎉 New features
diff --git a/app/reducers/location-index.ts b/app/reducers/location-index.ts
index e820aa21b..3fbc3762d 100644
--- a/app/reducers/location-index.ts
+++ b/app/reducers/location-index.ts
@@ -425,7 +425,16 @@ export const actions = {
entry.thumbPath.length > 1 &&
!entry.thumbPath.startsWith('http')
) {
- entry.thumbPath = PlatformIO.getURLforPath(entry.thumbPath);
+ let pathInLocation = '';
+ if (currentLocation.path) {
+ pathInLocation = currentLocation.path;
+ if (!pathInLocation.endsWith('/')) {
+ pathInLocation += '/';
+ }
+ }
+ entry.thumbPath = PlatformIO.getURLforPath(
+ pathInLocation + entry.thumbPath
+ );
}
});
}