--- title: "Liquid filters: link_to_remove_tag" description: |- Generates an HTML `` tag with an `href` attribute linking to the current blog or collection, filtered to show only articles or products that have any currently active tags, except the provided tag. api_name: liquid source_url: html: https://shopify.dev/docs/api/liquid/filters/link_to_remove_tag md: https://shopify.dev/docs/api/liquid/filters/link_to_remove_tag.md --- # link\_​to\_​remove\_​tag ```oobleck string | link_to_remove_tag ``` returns [string](https://shopify.dev/docs/api/liquid/basics#string) Generates an HTML `` tag with an `href` attribute linking to the current blog or collection, filtered to show only articles or products that have any currently active tags, except the provided tag. *** Tip To learn more about filtering by tag, refer to [Filter articles by tag](https://shopify.dev/themes/architecture/templates/blog#filter-articles-by-tag) or [Filter collections by tag](https://shopify.dev/themes/navigation-search/filtering/tag-filtering). *** ```liquid {% for tag in collection.all_tags %} {%- if current_tags contains tag -%} {{ tag | link_to_remove_tag: tag }} {%- else -%} {{ tag | link_to_add_tag: tag }} {%- endif -%} {% endfor %} ``` ## Output ```html extra-potent fresh healing ingredients ```