diff --git a/.ci/.autoRedirect b/.ci/.autoRedirect index 1c7bfc532cd669559bd5fd33796e543af631230e..0746648bbfdb2c12257719c841b0f6b012ffe576 100644 --- a/.ci/.autoRedirect +++ b/.ci/.autoRedirect @@ -15,12 +15,15 @@ }); } UrlExists('https://r3-core.pages.uni.lu/howto-cards-internal/index.html', function(status){ + var pathArray = window.location.pathname.split('/'); + var sub = pathArray[1]; + if(status === 200){ // internal pages - window.location.href = 'https://r3-core.pages.uni.lu/howto-cards-internal/stable'; + window.location.href = 'https://r3-core.pages.uni.lu/howto-cards-internal/stable/internal/'+sub; } else { // external pages - window.location.href = 'https://r3.pages.uni.lu/howto-cards/stable'; + window.location.href = 'https://r3.pages.uni.lu/howto-cards/stable/external/'+sub; } }); </script>