$uri = new \CodeIgniter\HTTP\URI(previous_url());header('Location: '.site_url($uri->getPath()));exit;