diff --git a/frontend/src/views/files/Preview.vue b/frontend/src/views/files/Preview.vue index 8b257fe4..8c70ed8b 100644 --- a/frontend/src/views/files/Preview.vue +++ b/frontend/src/views/files/Preview.vue @@ -320,12 +320,12 @@ export default { return; } }, - prefetchUrl: function(item, routePath) { + prefetchUrl: function(item) { const key = Date.parse(item.modified); if (item.type === "image" && !this.fullSize) { - return `${baseURL}/api/preview/big${routePath.slice(6)}?k=${key}`; + return `${baseURL}/api/preview/big${item.path}?k=${key}&inline=true`; } else if (item.type === "image"){ - return `${baseURL}/api/raw${routePath.slice(6)}?k=${key}`; + return `${baseURL}/api/raw${item.path}?k=${key}&inline=true`; } else{ return ""; }