# Pagination error when loading in webflow locales

**URL:** <https://forum.finsweet.com/t/pagination-error-when-loading-in-webflow-locales/6993>\
**Category:** Attributes\
**Tags:** cmsfilter, cmsload, list-filter\
**Created:** [March 9, 2026, 12:07pm UTC](https://forum.finsweet.com/t/pagination-error-when-loading-in-webflow-locales/6993 "2026-03-09T12:07:40Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![aaron](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/aaron/32/738_2.png) [@aaron](https://forum.finsweet.com/u/aaron)\
**Post date:** [March 9, 2026, 12:07pm UTC](https://forum.finsweet.com/t/pagination-error-when-loading-in-webflow-locales/6993/1 "2026-03-09T12:07:40Z")

</div>

Hello,

I have a project where I have Attributes v2 installed and I’m using Finsweet’s pagination and filters to show a list of articles, in the filters form I have another collection (categories) that serves as a filtering system to show only articles that match the selected category.

The issue is that although everything works fine in the main locale (Spanish) when I switch to any other locales the pagination functionality gets all messed up because instead of showing the next page of articles it shows the categories and only the first page of the pagination shows articles.

Here is the preview link of the project:

> **[Webflow - seQura Oficial](https://preview.webflow.com/preview/official-sequra?utm_medium=preview_link&utm_source=designer&utm_content=official-sequra&preview=c573c8c6ecb0054da129489f618b507b&pageId=63dd081060e843b85d3470bf&locale=es&workflow=preview)**

and here’s the live link with the error:

> **[Tips para hacer crecer tu ecommerce | Blog Sequra](https://www.sequra.com/es/blog)**
>
> Tips para hacer crecer tu ecommerce en el blog de Sequra. Disfruta de todos nuestros consejos para hacer crecer tu negocio!

I recorded a video explaining everything here:

Hope you guys can help me. Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Support-Finn](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/support-finn/32/5169_2.png) [@Support-Finn](https://forum.finsweet.com/u/Support-Finn)\
**Post date:** [March 9, 2026, 3:47pm UTC](https://forum.finsweet.com/t/pagination-error-when-loading-in-webflow-locales/6993/2 "2026-03-09T15:47:54Z")

</div>

Hey @aaron! 👋

We checked your setup and your attributes look correct — this isn’t a configuration error on your end. What you’re experiencing is a known interaction between Webflow’s localization system and Attributes v2.

**What’s happening:**

When Webflow switches between locales, it updates the page content in the DOM, but Attributes v2 may initialize before that update fully completes. This causes the script to work with the “old” locale’s content structure instead of the new one. That’s why everything works perfectly in your main Spanish locale (the first to load), but breaks when you switch to other locales.

We’ve helped with this before in a similar case where someone had pagination and search working in one locale but failing in others. The root cause was the same: localization timing.

**The solution:**

You’ll need to add a re-initialization script that forces Attributes to refresh after Webflow completes the locale switch. This script listens for the locale change and tells Attributes to re-index the page content.

Since the previous verified case used search+pagination and your setup uses filters+pagination with a dynamic categories collection, the script may need slight adaptation for your specific scenario.

**Here’s what we’d recommend:**

We can help you implement the re-initialization approach — if you can share a read-only link to your project, we can test it directly on your setup and make sure it works with your filter configuration too 🙏

The categories collection you’re using for your filter radio buttons is a standard dynamic filter pattern — that setup looks good. The primary cause appears to be the localization timing, but if the re-initialization doesn’t fully resolve it, we can also investigate whether there’s any interaction with the secondary collection.

**To clarify:** The attributes we can see in your HTML are all correct:

- **fs-list-element=“list”** on your blog collection ✓
- **fs-list-load=“pagination”** for pagination ✓
- **fs-list-element=“filters”** on your form ✓
- **fs-list-field=“category”** and **fs-list-value** on your radio buttons ✓
- **fs-list-element=“page-button”** for pagination buttons ✓

If the re-initialization approach doesn’t fully resolve it, we’ll loop in @Support-Luis or @Support-Pedro who have more experience with localization edge cases. Let us know how it goes or if you’d like us to provide the specific script implementation!

---

<div class="post-metadata">

**Author:** ![jesse.muiruri](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/jesse.muiruri/32/6611_2.png) [@jesse.muiruri](https://forum.finsweet.com/u/jesse.muiruri)\
**Post date:** [March 9, 2026, 5:15pm UTC](https://forum.finsweet.com/t/pagination-error-when-loading-in-webflow-locales/6993/4 "2026-03-09T17:15:35Z")

</div>

Hey @aaron

Try out this code in your `Before </Body> tag` custom code section

```auto
<script>
window.FinsweetAttributes ||= [];
  window.FinsweetAttributes.push([
    "list",
    (listInstances) => {
      console.log("List Successfully loaded!");

      const [listInstance] = listInstances;

      // 1. Create a function to re-index the list
      const reIndex = async () => {
        console.log("Localization detected. Re-indexing Finsweet...");
        // We destroy the store and re-run the internal init
        listInstance.triggerHook('start');
      };

      // 2. Setup a MutationObserver to watch for text changes
      // This detects when Webflow swaps English text for Localized text
      const observer = new MutationObserver((mutations) => {
        observer.disconnect(); // Only need to trigger this once
        reIndex();
      });

      // 3. Start observing the first item's title
      const firstItemTitle = document.querySelector('[fs-list-field="name"]');
      if (firstItemTitle) {
        observer.observe(firstItemTitle, { 
          characterData: true, 
          childList: true, 
          subtree: true 
        });
      }

      // Fallback: If no mutation happens in 1 second, re-index anyway
      setTimeout(() => {
        observer.disconnect();
        listInstance.triggerHook('start');
      }, 1000);
    },
]);
</script>

```

---

<div class="post-metadata">

**Author:** ![aaron](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/aaron/32/738_2.png) [@aaron](https://forum.finsweet.com/u/aaron)\
**Post date:** [March 9, 2026, 7:03pm UTC](https://forum.finsweet.com/t/pagination-error-when-loading-in-webflow-locales/6993/5 "2026-03-09T19:03:44Z")

</div>

Thanks @Support-Finn for the very detailed explanation. I’ll standby and wait what @Support-Luis and @Support-Pedro suggest.

@jesse.muiruri I’ve tried your code but the problem still persists.

---

<div class="post-metadata">

**Author:** ![aaron](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/aaron/32/738_2.png) [@aaron](https://forum.finsweet.com/u/aaron)\
**Post date:** [March 11, 2026, 12:12pm UTC](https://forum.finsweet.com/t/pagination-error-when-loading-in-webflow-locales/6993/6 "2026-03-11T12:12:24Z")

</div>

Hello @Support-Finn

Do you have an update on this regard? I shared the preview link in the original post.

Let me know, thanks.

---

<div class="post-metadata">

**Author:** ![aaron](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/aaron/32/738_2.png) [@aaron](https://forum.finsweet.com/u/aaron)\
**Post date:** [May 13, 2026, 11:22am UTC](https://forum.finsweet.com/t/pagination-error-when-loading-in-webflow-locales/6993/7 "2026-05-13T11:22:30Z")

</div>

Hey @Support-Finn is there any chance you can take a look at this? Thanks.

---

<div class="post-metadata">

**Author:** ![jesse.muiruri](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/jesse.muiruri/32/6611_2.png) [@jesse.muiruri](https://forum.finsweet.com/u/jesse.muiruri)\
**Post date:** [May 15, 2026, 4:52pm UTC](https://forum.finsweet.com/t/pagination-error-when-loading-in-webflow-locales/6993/8 "2026-05-15T16:52:16Z")

</div>

Hi @aaron

I’ve re-checked the site

There’s this code

```auto
window.fsAttributes = window.fsAttributes || [];
window.fsAttributes.push([
  'cmslist',
  (listInstances) => {
    removeNonMatchingLanguages(); // runs after Finsweet has indexed everything
    
    const [listInstance] = listInstances;
    listInstance.triggerHook('start'); // re-index after DOM cleanup
  }
]);

```

It’s all v1 and so it’s never triggered

Replace with this

```auto
 window.FinsweetAttributes = window.FinsweetAttributes || [];
  window.FinsweetAttributes.push([
    'list',
    (listInstances) => {
      removeNonMatchingLanguages();
      const [listInstance] = listInstances;
      listInstance.triggerHook('filter'); // re-evaluates items after DOM cleanup
    }
  ]);

```

Then comment out this line

```auto
document.addEventListener('DOMContentLoaded', removeNonMatchingLanguages);

```

Finsweet will call your callback after it has fully initialized

Also as a sidenote make sure all articles have their `wf-lang=""` populated with the correct lang

Let us know!

---

<div class="post-metadata">

**Author:** ![aaron](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/aaron/32/738_2.png) [@aaron](https://forum.finsweet.com/u/aaron)\
**Post date:** [May 19, 2026, 3:18pm UTC](https://forum.finsweet.com/t/pagination-error-when-loading-in-webflow-locales/6993/9 "2026-05-19T15:18:45Z")

</div>

Thank you very much @jesse.muiruri this has resolved the issue!

Sorry I wasn’t aware that you were working with the team that’s why I kept tagging Luis.
