fixes email confirm/revert links (fixes #660)