fix redirect
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user