reload page after swal confirmation use this code:
<script type="text/javascript"> if (okay) { window.location.reload(); } </script>
For example:
<script type="text/javascript"> swal("Successfully done.", { icon: "success", title: "Congrats!" }).then(okay => { if (okay) { window.location.reload(); } }); </script>
Question and answer is powered by AnsPress.io