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

changes for query

parent f5e4594b
No related branches found
No related tags found
No related merge requests found
Pipeline #15755 passed
...@@ -15,12 +15,12 @@ ...@@ -15,12 +15,12 @@
}); });
} }
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 s = window.location.pathname; var s = window.location.href;
var pathArray = s.split('/'); var pathArray = s.split('?');
// cut the entire subdomain path // cut the query if it exists
if (pathArray[0].length > 0) { if (pathArray.length > 0) {
sub = s.substr(pathArray[0].length+1); sub = pathArray[1];
} else { } else {
sub = ''; 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