Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
R3
howto-cards
Commits
3a3bf4f0
Commit
3a3bf4f0
authored
Oct 28, 2019
by
Laurent Heirendt
✈
Browse files
Merge branch 'fix-autoredirect' into 'develop'
split url for dns redirect See merge request
!24
parents
52c93b81
7a3f9869
Pipeline
#15745
passed with stage
in 1 minute and 35 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
.ci/.autoRedirect
View file @
3a3bf4f0
...
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment