Forked from
R3 / howto-cards LEGACY VERSION
1800 commits behind the upstream repository.
-
Laurent Heirendt authoredLaurent Heirendt authored
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
.autoRedirect 1.03 KiB
<html>
<head>
<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/howto-cards-internal/index.html', function(status){
if(status === 200){
// internal pages
window.location.href = 'https://r3-core.pages.uni.lu/howto-cards-internal/stable';
} else {
// external pages
window.location.href = 'https://r3.pages.uni.lu/howto-cards/stable';
}
});
</script>
</head>
<body>
<p>
Please follow to <a href="https://r3.pages.uni.lu/howto-cards/stable">https://r3.pages.uni.lu/howto-cards/stable</a>!
</p>
</body>
</html>