fix login URL and return ctx in 401 page
Merge branch 'master' into integration