Modifications pour le document Code test
sur 2021/11/02 21:51
sur 2021/11/02 21:54
Résumé
Détails
- Propriétés de la Page
-
- Contenu
-
... ... @@ -77,3 +77,15 @@ 77 77 </div> 78 78 {{/html}} 79 79 80 + } 81 +\\ var isGood = document.location.href.startsWith("https:~/~/"); 82 + var isWrong = document.location.href.startsWith("http:~/~/"); 83 + console.log("Insisting? " + isGood + " " + isWrong); 84 + if(!isGood && isWrong) { 85 + if(console && console.log) console.log("Redirecting to the https side."); 86 + document.location.replace("https:~/~/" + document.location.href.substring("http:~/~/".length)); 87 + } 88 + 89 +/~*~*/ 90 +))) 91 +)))