Skip to content
Snippets Groups Projects
Verified Commit 26127d71 authored by Laurent Heirendt's avatar Laurent Heirendt :airplane:
Browse files

fix bug

parent 20ab0417
No related branches found
No related tags found
No related merge requests found
Pipeline #15757 passed
...@@ -29,11 +29,12 @@ ...@@ -29,11 +29,12 @@
// internal pages // internal pages
if (sub.length > 0) { if (sub.length > 0) {
UrlExists('https://r3-core.pages.uni.lu/howto-cards-internal/stable/internal/'+sub, function(status){ UrlExists('https://r3-core.pages.uni.lu/howto-cards-internal/stable/internal/'+sub, function(status){
// redirect if card is actually internal and exists // redirect if card is actually internal and exists
if (status == 200) { if (status == 200) {
window.location.href = 'https://r3-core.pages.uni.lu/howto-cards-internal/stable/internal/'+sub; window.location.href = 'https://r3-core.pages.uni.lu/howto-cards-internal/stable/internal/'+sub;
} else { } else {
window.location.href = 'https://r3-core.pages.uni.lu/howto-cards-internal/stable/external/'+sub; window.location.href = 'https://r3-core.pages.uni.lu/howto-cards-internal/stable/external/'+sub;
}
} }
} else { } else {
window.location.href = 'https://r3-core.pages.uni.lu/howto-cards-internal/stable/'+sub; window.location.href = 'https://r3-core.pages.uni.lu/howto-cards-internal/stable/'+sub;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment