fixes #1665

if not logged in and you added ?edit to an url that gave you a 404.

see #1665