diff --git a/src/layouts/BaseLayout.astro b/src/layouts/BaseLayout.astro
index 5b949b964..b239ff056 100644
--- a/src/layouts/BaseLayout.astro
+++ b/src/layouts/BaseLayout.astro
@@ -27,7 +27,11 @@ const {
sponsor,
} = Astro.props;
-const currentPageAbsoluteUrl = `https://roadmap.sh${permalink}`;
+// Remove trailing slashes to consider the page as canonical
+const currentPageAbsoluteUrl = `https://roadmap.sh${permalink.replace(
+ /\/$/,
+ ''
+)}`;
---
@@ -59,7 +63,7 @@ const currentPageAbsoluteUrl = `https://roadmap.sh${permalink}`;
-
+ {currentPageAbsoluteUrl !== 'https://roadmap.sh' && }