     else
       search = "\"#{search}\""
   pathFor 'search',
-    group: Template.parentData().group
+    group: group
     search: "tag:#{search}"
 
 Template.registerHelper 'folded', ->

                  }
                  <span className="panel-title"
                  dangerouslySetInnerHTML={__html: formattedTitle[1]}/>
                  {###
                  +messageTags
                  +messageLabels
                  ###}
                </span>
              </div>
            }

  sortTags @tags

Template.registerHelper 'linkToTag', ->
  linkToTag Template.parentData().group
linkToTag = (group) ->
  #pathFor 'tag',
  #  group: group
  #  tag: @key
  search = @key
  if 0 <= search.indexOf ' '
