Blog Sections Open

Keeping YAMS Pagination on the Current Language

How to stop Ditto pagination from sending multilingual visitors back to the default language when using YAMS.

A classic YAMS problem appears when a visitor switches to another language, opens a paginated list, and pagination links suddenly send them back to the default language. The listing works, but the page parameter no longer preserves the active language context.

Why It Happens

Pagination helpers usually generate links from the base resource URL. If the current language marker is not injected into that URL, page 2 and beyond fall back to the default route.

What to Preserve

  • the active language context in the base listing URL
  • the page parameter together with the language segment or query
  • consistent canonical rules for all language variants

When debugging, inspect the generated page links directly. If page 1 is language-aware but page 2 is not, the pagination template is almost always the place to patch.

Newer post

Designing Image Galleries for Multilingual Sites

How to handle gallery captions, localized image descriptions, and output logic when one gallery must work across multiple languages.

Older post

Including Resource IDs in AjaxSearch Results

How to make AjaxSearch find documents by both title and numeric ID when content names are too similar to use alone.