Skip to content
Snippets Groups Projects
Commit 041c63ee authored by Laurent Heirendt's avatar Laurent Heirendt :airplane:
Browse files

Merge branch 'develop' into 'master'

Regular merge of develop

See merge request !25
parents f4869713 3a3bf4f0
No related branches found
No related tags found
1 merge request!25Regular merge of develop
Pipeline #15746 passed
......@@ -15,12 +15,22 @@
});
}
UrlExists('https://r3-core.pages.uni.lu/howto-cards-internal/index.html', function(status){
var s = window.location.pathname;
var pathArray = s.split('/');
// cut the entire subdomain path
if (pathArray[0].length > 0) {
sub = s.substr(pathArray[0].length+1);
} else {
sub = '';
}
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