Smart Search pagination issue - Forum | JoomShaper
Staff replied Helix Framework

Smart Search pagination issue

Asked by HLSystem 6 months ago Last activity 6 months ago

Joomla 6 + Helix Ultimate

Smart Search pagination issue:
On page 2+, the "q" parameter disappears when using SEF URLs.

Example:
Page 1:
/részletes-keresés.html?f=1&q=most&start=0

Generated link:
/részletes-keresés.html?f=1&q=most&start=60

Result:

  • Pagination breaks
  • Empty results page

Important:
If I manually replace "&" with "&" in the URL, pagination works correctly.

Looks like a double-escaping issue in pagination links.

Quick fix:
/plugins/system/helixultimate/overrides/layouts/joomla/pagination/link.php

    elseif ($app->isClient('site'))
    {
        $escapedLink = htmlspecialchars($item->link ?? '', ENT_QUOTES, 'UTF-8');
        // $link = 'href="' . $escapedLink . '"';
        $link = 'href="' . $item->link . '"';
    }

Formatting edited.

1 reply

Ziaul Kabir Staff

Hi,

Thank you for the detailed report and for sharing the workaround.

From your description, it does appear to be a double-escaping issue in the pagination links, where & is being converted to &, causing the q parameter to be lost in SEF URLs and resulting in broken pagination on subsequent pages.

We appreciate you pointing out the exact location and the temporary fix in the Helix Ultimate override file. Your solution makes sense as it prevents the additional escaping at that stage.

However, modifying core or override files directly is only a temporary workaround and may be overwritten during updates.

We will review this behavior within Helix Ultimate and check for a proper fix to ensure pagination links are generated correctly without breaking URL parameters.

Thank you again for your valuable feedback.

Best regards,

Log in to reply.