From 36896b1fadeffcb24cc83fd8f38ff08be78517bf Mon Sep 17 00:00:00 2001 From: Alibek Date: Mon, 18 Mar 2024 17:30:09 +0600 Subject: [PATCH] fixed metadata in report page --- src/app/[locale]/report/[id]/page.tsx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/app/[locale]/report/[id]/page.tsx b/src/app/[locale]/report/[id]/page.tsx index 715fca5..790db49 100644 --- a/src/app/[locale]/report/[id]/page.tsx +++ b/src/app/[locale]/report/[id]/page.tsx @@ -6,7 +6,6 @@ import ReportInformation from "@/widgets/report-details/ReportInformation/Report import ReportImages from "@/widgets/report-details/ReportImages/ReportImages"; import dynamic from "next/dynamic"; import BreadCrumbs from "@/features/BreadCrumbs/BreadCrumbs"; -import NotFound from "@/widgets/NotFound/NotFound"; import { apiInstance } from "@/shared/config/apiConfig"; const DynamicMap = dynamic( @@ -26,11 +25,11 @@ export async function generateMetadata({ ); return { - title: `KG ROAD | ${response.data.location[0].address}`, - description: response.data.description, + title: `KG ROAD | ${response.data.description}`, + description: `${response.data.location[0].address}, ${response.data.description}`, openGraph: { - title: `KG ROAD | ${response.data.location[0].address}`, - description: response.data.description, + title: `KG ROAD | ${response.data.description}`, + description: `${response.data.location[0].address}, ${response.data.description}`, images: [response.data.image[0].image], type: "article", },