'Next' and 'Previous' buttons not functioning correctly

Topic summary

A user working with Shopify’s ‘Editions’ theme is experiencing issues with pagination buttons on product pages. The ‘next’ and ‘previous’ buttons are refreshing the page instead of navigating to the intended products.

Technical Details:

  • The provided code snippet appears corrupted or improperly formatted
  • Contains reversed/garbled Liquid template syntax (Shopify’s templating language)
  • Shows pagination logic structure but is unreadable in its current state

Current Status:

  • No responses or solutions have been provided yet
  • The user needs help identifying what code to add or fix
  • The malformed code suggests either a copy-paste error or encoding issue that needs to be resolved before proper troubleshooting can occur
Summarized with AI on November 15. AI used: claude-sonnet-4-5-20250929.

Hello,

I’m using the ‘Editions’ theme. I have a ‘next’ and ‘previous’ button but they just refresh the page instead of leading to the relevant place. Code below - what do I need to add?

{%- if paginate.pages > 1 -%}

      {%- if paginate.previous-%}
          {% render 'prev' %}
        {%- endif -%}
    

{% assign count = paginate.pages %}

        {%- if paginate.next -%}
                {% render 'next' %}
      
        {% endif %}

   
  {% endif %}
{% endpaginate %}

 
 
{% endif %}