From 92901f06d4ce9b537c71364ad258f349b6b5cc0c Mon Sep 17 00:00:00 2001
From: Matthieu Benoist <mbenoist@ausy-group.com>
Date: Thu, 20 May 2021 15:21:13 +0200
Subject: [PATCH] Switch to dynamic description for the data pages.

---
 src/app/editorialisation/services/seo.service.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/app/editorialisation/services/seo.service.ts b/src/app/editorialisation/services/seo.service.ts
index c0ac5b39..b94e6e94 100644
--- a/src/app/editorialisation/services/seo.service.ts
+++ b/src/app/editorialisation/services/seo.service.ts
@@ -59,7 +59,7 @@ export class SeoSErvice {
     const imageUrl = (data.image != null) ?
         data.image.url : this._defaultImg;
 
-    const description = metaDescription.dataset;
+    const description = data.abstractTroncated;
 
     const meta = [
       { name: 'description', content: description },
-- 
GitLab