diff --git a/frontend/src/shared-dir-view.js b/frontend/src/shared-dir-view.js index 3f72d4a94f..27213f9e98 100644 --- a/frontend/src/shared-dir-view.js +++ b/frontend/src/shared-dir-view.js @@ -325,7 +325,7 @@ class SharedDirView extends React.Component { return { 'name': name, 'url': fileURL, - 'thumbnail': `${siteRoot}thumbnail/${repoID}/${thumbnailSizeForOriginal}${item.file_path}`, + 'thumbnail': `${siteRoot}thumbnail/${token}/${thumbnailSizeForOriginal}${Utils.encodePath(item.file_path)}`, 'src': src, 'downloadURL': fileURL + '&dl=1', };