This commit is contained in:
hanif salafi 2025-10-08 13:20:49 +07:00
commit 27098b5373
2 changed files with 24 additions and 2 deletions

View File

@ -35,10 +35,32 @@ export async function generateMetadata({ params }: any): Promise<Metadata> {
return {
title: video.title,
description: video.description,
// openGraph: {
// title: video?.title,
// description: video?.description,
// videos: [`${video?.smallThumbnailLink}`],
// },
openGraph: {
title: video?.title,
description: video?.description,
videos: [`${video?.smallThumbnailLink}`],
url: `https://mediahub.polri.go.id/in/video/detail/${slug}`,
type: "video.other",
images: [
{
url: video?.thumbnailLink,
width: 1280,
height: 720,
alt: video?.title || "Thumbnail Mediahub Polri",
},
],
},
twitter: {
card: "summary_large_image",
title: video?.title,
description: video?.description,
images: [
video?.thumbnailLink,
],
},
};
}

View File

@ -24,7 +24,7 @@ export async function getMediaTracking(
size: any
) {
return httpGetInterceptor(
`/media/tracking/monitoring/pagination?enablePagination=1&size=${size}&page=${page}&title=${title}`
`/media/tracking/monitoring/pagination?enablePagination=1&size=${size}&page=${page}&title=${title}&sortBy=id&sort=desc`
);
}