fix redirect

This commit is contained in:
Jagad R R
2024-12-26 13:28:06 +07:00
parent c8c37f8d10
commit 1bd9ffecba
8 changed files with 13 additions and 33 deletions
@@ -11,7 +11,6 @@
</div>
@endif
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
@if (Session::has('success'))
<script>
@@ -22,6 +21,9 @@
}).then(() => {
if ("{{ Session::get('redirect_url') }}") {
window.location.href = "{{ Session::get('redirect_url') }}";
@php
Session::forget('redirect_url');
@endphp
}
});
</script>
@@ -37,6 +39,9 @@
}).then(() => {
if ("{{ Session::get('redirect_url') }}") {
window.location.href = "{{ Session::get('redirect_url') }}";
@php
Session::forget('redirect_url');
@endphp
}
});
</script>