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
02ea305c
Commit
02ea305c
authored
Nov 11, 2019
by
Jacek Lebioda
Browse files
Merge branch 'redirect-404' into 'develop'
redirect to stable 404 See merge request
R3/howto-cards!42
parents
bf752eba
6bcfbf65
Pipeline
#16567
passed with stage
in 1 minute and 28 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.ci/.autoRedirect
View file @
02ea305c
...
...
@@ -41,7 +41,7 @@
if
(
status
==
200
)
{
// if sub-card is internal in the external directory and exists
window
.
location
.
href
=
internalURL
+
'
/stable/external/
'
+
sub
;
}
else
{
window
.
location
.
href
=
internalURL
+
'
/404.html
'
;
window
.
location
.
href
=
internalURL
+
'
/
stable/
404.html
'
;
}
});
}
...
...
@@ -51,7 +51,7 @@
if
(
status
==
200
)
{
// if card is internal and exists
window
.
location
.
href
=
internalURL
+
'
/stable
'
;
}
else
{
window
.
location
.
href
=
internalURL
+
'
/404.html
'
;
window
.
location
.
href
=
internalURL
+
'
/
stable/
404.html
'
;
}
});
}
...
...
@@ -62,7 +62,7 @@
if
(
status
==
200
)
{
// if sub-car is internal and exists
window
.
location
.
href
=
externalURL
+
'
/stable/
'
+
sub
;
}
else
{
window
.
location
.
href
=
externalURL
+
'
/404.html
'
;
window
.
location
.
href
=
externalURL
+
'
/
stable/
404.html
'
;
}
});
}
...
...
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