diff --git a/configs/ecospheres/config.yaml b/configs/ecospheres/config.yaml
index 429b42695..61964aff5 100644
--- a/configs/ecospheres/config.yaml
+++ b/configs/ecospheres/config.yaml
@@ -81,6 +81,8 @@ website:
to: /datasets
- text: Bouquets
to: /bouquets
+ - text: Tableau de bord
+ to: /dashboard
- text: A propos
to: /about
router:
@@ -99,6 +101,10 @@ website:
id: 'terms'
route: '/terms'
url: '/ecospheres/pages/terms.md'
+ - title: Tableau de bord
+ id: dashboard
+ url: '/ecospheres/pages/dashboard.md'
+ route: /dashboard
home_buttons:
topic_charts:
display: false
diff --git a/public/ecospheres/pages/dashboard.md b/public/ecospheres/pages/dashboard.md
new file mode 100644
index 000000000..8d6e06ee3
--- /dev/null
+++ b/public/ecospheres/pages/dashboard.md
@@ -0,0 +1,7 @@
+
diff --git a/src/utils/index.js b/src/utils/index.js
index 4debd1b0a..22f6862da 100644
--- a/src/utils/index.js
+++ b/src/utils/index.js
@@ -25,9 +25,10 @@ export const descriptionFromMarkdown = (ref, attr = 'description') => {
*
* @param {string} value
*/
-export const fromMarkdown = (value) => {
+export const fromMarkdown = (value, safe = false) => {
if (!value) return ''
const parsed = marked.parse(value, markedOptions)
+ if (safe) return parsed
return DOMPurify.sanitize(parsed)
}
diff --git a/src/views/SimplePageView.vue b/src/views/SimplePageView.vue
index 880b4d175..5c9b17c00 100644
--- a/src/views/SimplePageView.vue
+++ b/src/views/SimplePageView.vue
@@ -35,6 +35,6 @@ watchEffect(async () => {
-
+