Paginate is wrong after add a filter

Topic summary

Main issue: Adding a Liquid filter to hide products whose title equals “}” causes collection pagination to behave incorrectly.

Context: In Shopify, Liquid is the theme templating language. The user edited template code to exclude items with a specific title and then observed that the paginate control no longer matches the displayed products.

Evidence: Screenshots show the product with title “}”, the Liquid code change, and the resulting pagination view. The exact code and error details are embedded in images, which are central to understanding the implementation.

Request: Guidance on how to fix pagination after applying the product-title filter.

Current status: No solutions or workarounds have been provided yet, and the original poster followed up asking for help. The discussion remains open with unanswered questions about implementing the filter without breaking pagination.

Summarized with AI on January 28. AI used: gpt-5.

Hi,

I want to hide the product title equals “}”,

So I add a filter in liquid code,

but the pagination is wrong, what should I do? How to fix it?

Anyone can help?