diff --git a/.ci/.autoRedirect b/.ci/.autoRedirect
index 9c99360d2ee239f1de0861bbc134834b055b336a..a2eb11b6e14817671b50bcf2b5969815cce86a56 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 = '';