fixed ajax call to redirect properlygit add .