From 2ed8980a014de53742fc9d9eac0a8e641f513712 Mon Sep 17 00:00:00 2001 From: Valentin Date: Fri, 11 Oct 2024 14:49:20 +0200 Subject: [PATCH] =?UTF-8?q?correction=20pb=20d'acc=C3=A8s=20aux=20pages=20?= =?UTF-8?q?statiques=202?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/themes/custom/caravane/assets/js/stores/content.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/themes/custom/caravane/assets/js/stores/content.js b/web/themes/custom/caravane/assets/js/stores/content.js index e7daeee..e18a960 100644 --- a/web/themes/custom/caravane/assets/js/stores/content.js +++ b/web/themes/custom/caravane/assets/js/stores/content.js @@ -217,8 +217,12 @@ export const useContentStore = defineStore('content', { this.map = map; try { const response = await REST.get(`/jsonapi/node/static/`); + console.log("CONTENT, response : ", response); for (let page of response.data.data) { + + console.log("CONTENT, page.attributes : ", page.attributes); + if (page.attributes?.drupal_internal__nid == nid) { for (let metatag of page.attributes.metatag) { if (metatag.tag === "link") {