diff --git a/src/app/products/[id]/page.tsx b/src/app/products/[id]/page.tsx index 87f9c8c..742265d 100644 --- a/src/app/products/[id]/page.tsx +++ b/src/app/products/[id]/page.tsx @@ -24,7 +24,7 @@ export async function generateMetadata( return { title: service.data.danakService.pageTitle || 'محصولات داناک' + ' | ' + service.data.danakService.name, - description: (service.data.danakService.metaDescription || '').replace(/<[^>]*>/g, ''), + description: service.data.danakService.pageDescription, } } diff --git a/src/app/products/types/ProductTypes.ts b/src/app/products/types/ProductTypes.ts index eb58e5f..a3afca7 100644 --- a/src/app/products/types/ProductTypes.ts +++ b/src/app/products/types/ProductTypes.ts @@ -61,6 +61,7 @@ export interface DanakService { coverUrl: string; slug: string; pageTitle: string; + pageDescription: string; category: { id: string; title: string;