Verified Commit 68bd8370 authored by Laurent Heirendt's avatar Laurent Heirendt
Browse files

split url for dns redirect

parent 52c93b81
......@@ -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>
......
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