Fixing redirect for cancel button when final_url is not present