419 autorefresh after some time (prevents user confusion)

This commit is contained in:
Jérémy Munsch 2023-03-07 10:45:13 +00:00
parent b09c55d67b
commit 1b59ecf1db
3 changed files with 12 additions and 0 deletions

View file

@ -3,3 +3,13 @@
@section('title', __('Page Expired'))
@section('code', '419')
@section('message', __('Page Expired'))
@push('scripts')
<script nonce="{{ $nonce ?? null }}">
document.addEventListener('DOMContentLoaded', function () {
setTimeout(() => {
window.location = '{{ url()->previous() }}';
}, 3500);
});
</script>
@endpush

View file

@ -8,6 +8,7 @@
<link href="{{ mix('css/fo.css', 'build') }}" rel="stylesheet">
@stack('scripts')
</head>
<body>
<div class="row bg-primary text-primary bg-opacity-25 bg-gradient d-md-flex min-vh-100 h-100 m-0">

View file

@ -9,6 +9,7 @@
<style>.tracking-wider{letter-spacing:.05em}</style>
<link href="{{ mix('css/fo.css', 'build') }}" rel="stylesheet">
@stack('scripts')
</head>
<body>
<div class="bg-primary text-primary bg-opacity-25 bg-gradient d-flex align-items-start justify-content-center vh-100 align-items-sm-center pt-sm-0">