diff --git a/_includes/scripts.html b/_includes/scripts.html
index 5530028ef866c61947c18d716b10859604f3d4b9..90b047fc749f3f0886c47934856a71272944f862 100644
--- a/_includes/scripts.html
+++ b/_includes/scripts.html
@@ -37,3 +37,15 @@
     <script src="{{ script_path }}"></script>
   {% endfor %}
 {% endif %}
+
+<script>
+  if (window.netlifyIdentity) {
+    window.netlifyIdentity.on("init", user => {
+      if (!user) {
+        window.netlifyIdentity.on("login", () => {
+          document.location.href = "/lepuget/";
+        });
+      }
+    });
+  }
+</script>
diff --git a/_pages-jardin/index.md b/_pages-jardin/index.md
index 58b137fb7263e8705d5e85fddb3612518be8d22c..0be71e35f097746f33e4e601780cb3127ee76df1 100644
--- a/_pages-jardin/index.md
+++ b/_pages-jardin/index.md
@@ -36,17 +36,6 @@ feature_row:
     btn_class: "btn--warning"
     btn_label: "<i class='fas fa-music'></i> Infos"
 ---
-<script>
-  if (window.netlifyIdentity) {
-    window.netlifyIdentity.on("init", user => {
-      if (!user) {
-        window.netlifyIdentity.on("login", () => {
-          document.location.href = "/lepuget/";
-        });
-      }
-    });
-  }
-</script>
 
 {% include feature_row %}