From 5270d40958b940a9cb43b879e30fb807c3255a28 Mon Sep 17 00:00:00 2001 From: laurentheirendt <laurent.heirendt@uni.lu> Date: Mon, 28 Oct 2019 20:01:43 +0100 Subject: [PATCH] changes for query --- .ci/.autoRedirect | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.ci/.autoRedirect b/.ci/.autoRedirect index e210fe69..02aa8ba0 100644 --- a/.ci/.autoRedirect +++ b/.ci/.autoRedirect @@ -15,12 +15,12 @@ }); } UrlExists('https://r3-core.pages.uni.lu/howto-cards-internal/index.html', function(status){ - var s = window.location.pathname; - var pathArray = s.split('/'); + var s = window.location.href; + var pathArray = s.split('?'); - // cut the entire subdomain path - if (pathArray[0].length > 0) { - sub = s.substr(pathArray[0].length+1); + // cut the query if it exists + if (pathArray.length > 0) { + sub = pathArray[1]; } else { sub = ''; } -- GitLab