We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d04fd3 commit 272a026Copy full SHA for 272a026
1 file changed
src/Resources/themes/default/doctum.js.twig
@@ -84,7 +84,8 @@ var Doctum = {
84
var testRequest = new XMLHttpRequest();
85
testRequest.open('HEAD', candidateUrl, false);
86
testRequest.send();
87
- if (testRequest.status < 200 || testRequest.status > 399) {
+ if (testRequest.status >= 200 && testRequest.status < 300) {
88
+ // The page was found, go to it
89
window.location = candidateUrl;
90
} else {
91
// otherwise reroute to the home page of the new version
0 commit comments