diff --git a/src/Menu/ArchiveLink.coffee b/src/Menu/ArchiveLink.coffee index a099ccc79..e110bb310 100644 --- a/src/Menu/ArchiveLink.coffee +++ b/src/Menu/ArchiveLink.coffee @@ -38,15 +38,19 @@ ArchiveLink = true else (post) -> + typeParam = if type is 'country' and post.info.flagCodeTroll + 'tag' + else + type value = if type is 'country' - post.info.flagCode + post.info.flagCode or post.info.flagCodeTroll else Filter[type] post # We want to parse the exact same stuff as the filter does already. return false unless value el.href = Redirect.to 'search', boardID: post.board.ID - type: type + type: typeParam value: value isSearch: true true