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

change to redirect entire path

Former-commit-id: 7a3f9869
parent 7efb222a
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !49. Comments created here will be created in the context of that merge request.
...@@ -15,8 +15,15 @@ ...@@ -15,8 +15,15 @@
}); });
} }
UrlExists('https://r3-core.pages.uni.lu/howto-cards-internal/index.html', function(status){ UrlExists('https://r3-core.pages.uni.lu/howto-cards-internal/index.html', function(status){
var pathArray = window.location.pathname.split('/'); var s = window.location.pathname;
var sub = pathArray[1]; 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){ if(status === 200){
// internal pages // internal pages
......
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