forked from Transparency/kgroad-frontend2
fixed metadata in report page
This commit is contained in:
parent
779f37a1a3
commit
36896b1fad
@ -6,7 +6,6 @@ import ReportInformation from "@/widgets/report-details/ReportInformation/Report
|
|||||||
import ReportImages from "@/widgets/report-details/ReportImages/ReportImages";
|
import ReportImages from "@/widgets/report-details/ReportImages/ReportImages";
|
||||||
import dynamic from "next/dynamic";
|
import dynamic from "next/dynamic";
|
||||||
import BreadCrumbs from "@/features/BreadCrumbs/BreadCrumbs";
|
import BreadCrumbs from "@/features/BreadCrumbs/BreadCrumbs";
|
||||||
import NotFound from "@/widgets/NotFound/NotFound";
|
|
||||||
import { apiInstance } from "@/shared/config/apiConfig";
|
import { apiInstance } from "@/shared/config/apiConfig";
|
||||||
|
|
||||||
const DynamicMap = dynamic(
|
const DynamicMap = dynamic(
|
||||||
@ -26,11 +25,11 @@ export async function generateMetadata({
|
|||||||
);
|
);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
title: `KG ROAD | ${response.data.location[0].address}`,
|
title: `KG ROAD | ${response.data.description}`,
|
||||||
description: response.data.description,
|
description: `${response.data.location[0].address}, ${response.data.description}`,
|
||||||
openGraph: {
|
openGraph: {
|
||||||
title: `KG ROAD | ${response.data.location[0].address}`,
|
title: `KG ROAD | ${response.data.description}`,
|
||||||
description: response.data.description,
|
description: `${response.data.location[0].address}, ${response.data.description}`,
|
||||||
images: [response.data.image[0].image],
|
images: [response.data.image[0].image],
|
||||||
type: "article",
|
type: "article",
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user