diff --git a/.ci/.autoRedirect b/.ci/.autoRedirect index d18e26b4299d6db22589b472e85bd92454cbb46d..e210fe69431f5f59a9d09b0a0bb012f1902e41e6 100644 --- a/.ci/.autoRedirect +++ b/.ci/.autoRedirect @@ -27,10 +27,12 @@ if(status === 200){ // internal pages - window.location.href = 'https://r3-core.pages.uni.lu/howto-cards-internal/stable/internal/'+sub; + if (sub.length > 0) { sub = 'internal/'+sub; } + window.location.href = 'https://r3-core.pages.uni.lu/howto-cards-internal/stable/'+sub; } else { // external pages - window.location.href = 'https://r3.pages.uni.lu/howto-cards/stable/external/'+sub; + if (sub.length > 0) { sub = 'external/'+sub; } + window.location.href = 'https://r3.pages.uni.lu/howto-cards/stable/'+sub; } }); </script>