           redirectToTeam: (person, alternatePath) ->
             Team.first { 'members._id': person._id }, (error, team) =>
               if team?
-                @redirect '/teams/' + team.id()
+                @redirect '/teams/' + team.toParam()
               else
                 @redirect (alternatePath or '/')
           redirectToLogin: ->

            if @req.xhr
              @res.send 'OK', 200
            else
              @redirect '/teams/' + team.id()
      # TODO shouldn't need this
      if @req.body.emails
        team.setMembers @req.body.emails, save


get '/me', ->
  if @currentPerson?
    @redirect "/people/#{@currentPerson.toParam()}/edit"
  else
    @redirectToLogin()

