diff --git a/.ci/.autoRedirect b/.ci/.autoRedirect index e210fe69431f5f59a9d09b0a0bb012f1902e41e6..02aa8ba0e79a3cbbee707fb9aecefa68f70f5a35 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 = ''; }