From 68ed96e28ad94fef0833acc062e72d08fe2069c8 Mon Sep 17 00:00:00 2001 From: tonytangdev Date: Thu, 25 Jan 2024 21:37:24 +0100 Subject: [PATCH] fix(products): update links redirecting to product https://github.com/vercel/commerce/issues/1285 --- app/sitemap.ts | 2 +- components/carousel.tsx | 2 +- components/cart/modal.tsx | 2 +- components/grid/three-items.tsx | 5 ++++- components/layout/product-grid-items.tsx | 5 ++++- 5 files changed, 11 insertions(+), 5 deletions(-) diff --git a/app/sitemap.ts b/app/sitemap.ts index fe8ed96ac..8ee2109f5 100644 --- a/app/sitemap.ts +++ b/app/sitemap.ts @@ -28,7 +28,7 @@ export default async function sitemap(): Promise { const productsPromise = getProducts({}).then((products) => products.map((product) => ({ - url: `${baseUrl}/product/${product.handle}`, + url: `${baseUrl}/products/${product.handle}`, lastModified: product.updatedAt })) ); diff --git a/components/carousel.tsx b/components/carousel.tsx index 286d4dfea..841c81263 100644 --- a/components/carousel.tsx +++ b/components/carousel.tsx @@ -19,7 +19,7 @@ export async function Carousel() { key={`${product.handle}${i}`} className="relative aspect-square h-[30vh] max-h-[275px] w-2/3 max-w-[475px] flex-none md:w-1/3" > - + - + {products.map((product) => ( - +