From a950ceb00b413900d8888d2551e1e8f47c4583ea Mon Sep 17 00:00:00 2001
From: laurentheirendt <laurent.heirendt@uni.lu>
Date: Mon, 28 Oct 2019 20:27:25 +0100
Subject: [PATCH] fix path array length

---
 .ci/.autoRedirect | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.ci/.autoRedirect b/.ci/.autoRedirect
index 9c99360d..a2eb11b6 100644
--- a/.ci/.autoRedirect
+++ b/.ci/.autoRedirect
@@ -19,7 +19,7 @@
         var pathArray = s.split('?');
 
         // cut the query if it exists
-        if (pathArray.length > 0) {
+        if (pathArray.length > 1) {
             sub = pathArray[1];
         } else {
             sub = '';
-- 
GitLab