From 26127d718607e15c4cbbb5cad2aa2800a49631f5 Mon Sep 17 00:00:00 2001 From: laurentheirendt <laurent.heirendt@uni.lu> Date: Mon, 28 Oct 2019 20:20:18 +0100 Subject: [PATCH] fix bug --- .ci/.autoRedirect | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.ci/.autoRedirect b/.ci/.autoRedirect index b10f0eb8..363f055e 100644 --- a/.ci/.autoRedirect +++ b/.ci/.autoRedirect @@ -29,11 +29,12 @@ // internal pages if (sub.length > 0) { UrlExists('https://r3-core.pages.uni.lu/howto-cards-internal/stable/internal/'+sub, function(status){ - // redirect if card is actually internal and exists - if (status == 200) { - window.location.href = 'https://r3-core.pages.uni.lu/howto-cards-internal/stable/internal/'+sub; - } else { - window.location.href = 'https://r3-core.pages.uni.lu/howto-cards-internal/stable/external/'+sub; + // redirect if card is actually internal and exists + if (status == 200) { + window.location.href = 'https://r3-core.pages.uni.lu/howto-cards-internal/stable/internal/'+sub; + } else { + window.location.href = 'https://r3-core.pages.uni.lu/howto-cards-internal/stable/external/'+sub; + } } } else { window.location.href = 'https://r3-core.pages.uni.lu/howto-cards-internal/stable/'+sub; -- GitLab