diff --git a/.ci/.autoRedirect b/.ci/.autoRedirect
index b10f0eb8045afb5de3066d27ef396357da4d2a2e..363f055e8a31fe3c119d08fe0a0af2bf6b382778 100644
--- a/.ci/.autoRedirect
+++ b/.ci/.autoRedirect
@@ -29,11 +29,12 @@
             // internal pages
             if (sub.length > 0) {
                 UrlExists('https://r3-core.pages.uni.lu/howto-cards-internal/stable/internal/'+sub, function(status){
-                // redirect if card is actually internal and exists
-                if (status == 200) {
-                    window.location.href = 'https://r3-core.pages.uni.lu/howto-cards-internal/stable/internal/'+sub;
-                } else {
-                    window.location.href = 'https://r3-core.pages.uni.lu/howto-cards-internal/stable/external/'+sub;
+                    // redirect if card is actually internal and exists
+                    if (status == 200) {
+                        window.location.href = 'https://r3-core.pages.uni.lu/howto-cards-internal/stable/internal/'+sub;
+                    } else {
+                        window.location.href = 'https://r3-core.pages.uni.lu/howto-cards-internal/stable/external/'+sub;
+                    }
                 }
             } else {
                 window.location.href = 'https://r3-core.pages.uni.lu/howto-cards-internal/stable/'+sub;