Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
R3
howto-cards
Commits
26127d71
Verified
Commit
26127d71
authored
Oct 28, 2019
by
Laurent Heirendt
✈
Browse files
fix bug
parent
20ab0417
Pipeline
#15757
passed with stage
in 1 minute and 17 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.ci/.autoRedirect
View file @
26127d71
...
...
@@ -29,11 +29,12 @@
// internal pages
if
(
sub
.
length
>
0
)
{
UrlExists
(
'
https://r3-core.pages.uni.lu/howto-cards-internal/stable/internal/
'
+
sub
,
function
(
status
){
// redirect if card is actually internal and exists
if
(
status
==
200
)
{
window
.
location
.
href
=
'
https://r3-core.pages.uni.lu/howto-cards-internal/stable/internal/
'
+
sub
;
}
else
{
window
.
location
.
href
=
'
https://r3-core.pages.uni.lu/howto-cards-internal/stable/external/
'
+
sub
;
// redirect if card is actually internal and exists
if
(
status
==
200
)
{
window
.
location
.
href
=
'
https://r3-core.pages.uni.lu/howto-cards-internal/stable/internal/
'
+
sub
;
}
else
{
window
.
location
.
href
=
'
https://r3-core.pages.uni.lu/howto-cards-internal/stable/external/
'
+
sub
;
}
}
}
else
{
window
.
location
.
href
=
'
https://r3-core.pages.uni.lu/howto-cards-internal/stable/
'
+
sub
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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