const clientsRouter = express.Router()
const distPath = join(root(), 'client', 'dist')
-const assetsImagesPath = join(root(), 'client', 'dist', 'client', 'assets', 'images')
+const assetsImagesPath = join(root(), 'client', 'dist', 'assets', 'images')
const embedPath = join(distPath, 'standalone', 'videos', 'embed.html')
const indexPath = join(distPath, 'index.html')
'@type': 'VideoObject',
name: videoNameEscaped,
description: videoDescriptionEscaped,
+ thumbnailUrl: previewUrl,
+ uploadDate: video.createdAt.toISOString(),
duration: video.getActivityStreamDuration(),
- thumbnailURL: previewUrl,
- contentURL: videoUrl,
- embedURL: embedUrl,
- uploadDate: video.createdAt
+ contentUrl: videoUrl,
+ embedUrl: embedUrl,
+ interactionCount: video.views
}
let tagsString = ''
// Schema.org
tagsString += `<script type="application/ld+json">${JSON.stringify(schemaTags)}</script>`
+ // SEO
+ tagsString += `<link rel="canonical" href="${videoUrl}" />`
+
return htmlStringPage.replace(OPENGRAPH_AND_OEMBED_COMMENT, tagsString)
}