diff --git a/apps/modeling-commons-backend/src/modules/file/file.service.ts b/apps/modeling-commons-backend/src/modules/file/file.service.ts index 76e3d0e8..4037e218 100644 --- a/apps/modeling-commons-backend/src/modules/file/file.service.ts +++ b/apps/modeling-commons-backend/src/modules/file/file.service.ts @@ -72,7 +72,8 @@ export default function makeFileService({ options: { client?: StorageClient; expiresIn?: number } = {}, ): Promise { if (isPublicKey(key)) { - return `${publicBaseUrl}/${key}`; + const encoded = key.split('/').map(encodeURIComponent).join('/'); + return `${publicBaseUrl}/${encoded}`; } const { expiresIn = 3600, client = signingStorageClient } = options; return getSignedUrl( diff --git a/apps/modeling-commons-frontend/app/pages/index.vue b/apps/modeling-commons-frontend/app/pages/index.vue index c8572440..65df5f00 100644 --- a/apps/modeling-commons-frontend/app/pages/index.vue +++ b/apps/modeling-commons-frontend/app/pages/index.vue @@ -186,7 +186,7 @@ const sectionConfigs: SectionConfig[] = [ key: "featured", title: "Featured Models", subtitle: "Community-endorsed simulations", - query: { limit: 6, isEndorsed: true }, + query: { limit: 8, isEndorsed: true }, viewAllTo: "/featured-models", }, {