Cancel button on front-end editor doesn't work

The Cancel link points back to the same wiki page url "?action=edit" at the end.