Fix redirect to login for /a/<domain>/