Skip to content
Snippets Groups Projects

redirect to stable 404

Merged Laurent Heirendt requested to merge (removed):redirect-404 into develop
1 file
+ 3
3
Compare changes
  • Side-by-side
  • Inline
+ 3
3
@@ -41,7 +41,7 @@
@@ -41,7 +41,7 @@
if (status == 200) { // if sub-card is internal in the external directory and exists
if (status == 200) { // if sub-card is internal in the external directory and exists
window.location.href = internalURL+'/stable/external/'+sub;
window.location.href = internalURL+'/stable/external/'+sub;
} else {
} else {
window.location.href = internalURL+'/404.html';
window.location.href = internalURL+'/stable/404.html';
}
}
});
});
}
}
@@ -51,7 +51,7 @@
@@ -51,7 +51,7 @@
if (status == 200) { // if card is internal and exists
if (status == 200) { // if card is internal and exists
window.location.href = internalURL+'/stable';
window.location.href = internalURL+'/stable';
} else {
} else {
window.location.href = internalURL+'/404.html';
window.location.href = internalURL+'/stable/404.html';
}
}
});
});
}
}
@@ -62,7 +62,7 @@
@@ -62,7 +62,7 @@
if (status == 200) { // if sub-car is internal and exists
if (status == 200) { // if sub-car is internal and exists
window.location.href = externalURL+'/stable/'+sub;
window.location.href = externalURL+'/stable/'+sub;
} else {
} else {
window.location.href = externalURL+'/404.html';
window.location.href = externalURL+'/stable/404.html';
}
}
});
});
}
}
Loading