redirect to using ajax in controller code example Example: ajax redirect in success success: function(msg){ window.location = "page.html"; }