Remove html response and fix url