After Ajax sends data to the database I want to redirect the user to another page / view. The data is added successfully to the database but redirect() doesn\'t redirect to