diff --git a/frontend/composables/api/static-routes.ts b/frontend/composables/api/static-routes.ts index fdbd9a9607b7..fd2275eca9da 100644 --- a/frontend/composables/api/static-routes.ts +++ b/frontend/composables/api/static-routes.ts @@ -11,15 +11,15 @@ export const useStaticRoutes = () => { // Methods to Generate reference urls for assets/images * function recipeImage(recipeId: string, version = "", key = 1) { - return `${fullBase}/media/recipes/${recipeId}/images/original.webp?&rnd=${key}&version=${version}`; + return `${fullBase}/media/recipes/${recipeId}/images/original.webp?rnd=${key}&version=${version}`; } function recipeSmallImage(recipeId: string, version = "", key = 1) { - return `${fullBase}/media/recipes/${recipeId}/images/min-original.webp?&rnd=${key}&version=${version}`; + return `${fullBase}/media/recipes/${recipeId}/images/min-original.webp?rnd=${key}&version=${version}`; } function recipeTinyImage(recipeId: string, version = "", key = 1) { - return `${fullBase}/media/recipes/${recipeId}/images/tiny-original.webp?&rnd=${key}&version=${version}`; + return `${fullBase}/media/recipes/${recipeId}/images/tiny-original.webp?rnd=${key}&version=${version}`; } function recipeAssetPath(recipeId: string, assetName: string) { diff --git a/frontend/pages/shared/recipes/_id.vue b/frontend/pages/shared/recipes/_id.vue index 53385e02b896..1458b8465c10 100644 --- a/frontend/pages/shared/recipes/_id.vue +++ b/frontend/pages/shared/recipes/_id.vue @@ -34,7 +34,7 @@ :key="imageKey" :max-width="enableLandscape ? null : '50%'" :height="hideImage ? '50' : imageHeight" - :src="recipeImage(recipe.slug, imageKey)" + :src="recipeImage(recipe.id, imageKey)" class="d-print-none" @error="hideImage = true" > @@ -197,6 +197,9 @@ :disable-amount="recipe.settings.disableAmount" :edit="form" public + :assets="recipe.assets" + :recipe-id="recipe.id" + :recipe-slug="recipe.slug" /> @@ -323,7 +326,6 @@ export default defineComponent({ const { data } = await api.recipes.getShared(id); if (data) { if (data && data !== undefined) { - console.log("Computed Meta. RefKey="); const imageURL = data.id ? recipeImage(data.id) : undefined; title.value = data.name;