Verified Commit 26127d71 authored by Laurent Heirendt's avatar Laurent Heirendt
Browse files

fix bug

parent 20ab0417
Pipeline #15757 passed with stage
in 1 minute and 17 seconds
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment