fixes bug when edit view is loaded and requires authentication (no cookie), closes #319
Merge branch 'master' into production