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

split url for dns redirect

parent 52c93b81
No related branches found
No related tags found
2 merge requests!25Regular merge of develop,!24split url for dns redirect
......@@ -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>
......
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