Redirecting after Ajax post

后端 未结 3 1617
自闭症患者
自闭症患者 2020-11-30 10:35

I want the success on ajax post to go to the home page. For some reason I keep doing it wrong. Any idea what I should do to fix this?

window.APP_ROOT_URL = \         


        
3条回答
  •  盖世英雄少女心
    2020-11-30 10:54

    success: function(response){
        window.location.href = response.redirect;
    }
    

    Hope the above will help because I had the same problem

提交回复
热议问题