<form>
:onsubmit="ignore_on_history_back()" |
et dans la page :
function ignore_on_history_back() { // on back, do not autolog nor prompt, go back to the app try { window.history.replaceState({}, null, location.href.replace('/cas/login', '/cas/authentification-en-cours.html')) } catch (e) {} } |
créer une page statique
<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)
[*] we have this issue with shibboleth-idp that is configured to delegate to CAS