Fix redirection after cancelling edit