           groupSlug = if target.group is "koding" then "" else "/#{target.group}"
           KD.getSingleton('router').handleRoute "#{groupSlug}/Activity/#{target.slug}", state:target
           view.destroy()
+        else if contents.type in ["join", "leave"]
+          KD.getSingleton('router').handleRoute "/#{target.slug}"
+          view.destroy()
 
 
   # NOTIFICATION SAMPLES


  fetchTarget: (data)->
    new Promise (resolve, reject) =>
      {targetId, type} = data.contents
      switch type
        when "comment", "like"
          KD.remote.api.SocialMessage.fetch id: targetId, (err, target) =>
            return reject err  if err
            data.target = target
            resolve data
        else
          resolve data


          setTitle "#{actorName} liked your status."
        when "follow"
          setTitle "#{actorName} started following you."
        when "join"
          setTitle "#{actorName} has joined <a href='/#{target.slug}'>#{target.title}</a>."
        when "leave"
          setTitle "#{actorName} has left <a href='/#{target.slug}'>#{target.title}</a>."

      # when "newMessage"
      #   @emit "NewMessageArrived"
      #   "#{actorName} sent you a #{subjectMap()[subject.constructorName]}."
      # when "groupInvited"
      #   "#{actorName} has invited you to <a href='#'>#{subjectObj.title}</a>."


  prepareClick: (data, options) ->
    {target, contents} = data
