Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
howto-cards LEGACY VERSION
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
R3
howto-cards LEGACY VERSION
Commits
f0bdc80a
Verified
Commit
f0bdc80a
authored
5 years ago
by
Laurent Heirendt
Browse files
Options
Downloads
Patches
Plain Diff
add js to redirect
parent
4143a7d3
No related branches found
No related tags found
1 merge request
!1
Regular merge of develop
Pipeline
#11193
passed
5 years ago
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.ci/.autoRedirect
+23
-1
23 additions, 1 deletion
.ci/.autoRedirect
with
23 additions
and
1 deletion
.ci/.autoRedirect
+
23
−
1
View file @
f0bdc80a
<html>
<head>
<meta
http-equiv=
"Refresh"
content=
"0; url=https://r3.pages.uni.lu/labCards/stable"
/>
<script
type=
"text/javascript"
src=
"https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js"
></script>
<script
type=
"text/javascript"
>
function
UrlExists
(
url
,
cb
){
jQuery
.
ajax
({
url
:
url
,
dataType
:
'
text
'
,
type
:
'
GET
'
,
complete
:
function
(
xhr
){
if
(
typeof
cb
===
'
function
'
)
cb
.
apply
(
this
,
[
xhr
.
status
]);
}
});
}
UrlExists
(
'
https://r3-core.pages.uni.lu/labCards/index.html
'
,
function
(
status
){
if
(
status
===
200
){
// internal pages
window
.
location
.
href
=
'
https://r3-core.pages.uni.lu/labCards/stable
'
;
}
else
{
// external pages
window
.
location
.
href
=
'
https://r3.pages.uni.lu/labCards/stable
'
;
}
});
</script>
</head>
<body>
<p>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment