...
Bloc de code | ||
---|---|---|
| ||
onsubmit="ignore_on_history_back()" |
et dans la page :
Bloc de code | ||
---|---|---|
| ||
function ignore_on_history_back() { // on back, do not autolog nor prompt, go back to the app app try { window.history.replaceState({}, null, location.href.replace('/cas/login', '/cas/authentification-en-cours.html')) } catch (e) {} } |
créer une page statique
Bloc de code language xml title authentification-en-cours.html <script> var isForward = (history.state || {}).isForward; try { history.replaceState({ isForward: !isForward }, null, null); } catch (e) {} history.go(isForward ? 1 : -1); </script> Page temporaire d'authentification. Nous vous redirigeons vers la page précédente...
(cf https://cas.univ-paris1.fr/cas/authentification-en-cours.html)
...