Fixed main homepage login issue.

On a default setup, login from a workspace URL worked as expected,
but login from the main homepage posted the login form to "//",
forbidding login.

Bug: 18