I have fixed this link.php code in this path: (JRoot/plugins/system/helixultimate/overrides/layouts/joomla/pagination/link.php)
Here is the code:
<?php
defined('JPATH_BASE') or die;
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
// Ensure $displayData['data'] exists
$item = isset($displayData['data']) ? $displayData['data'] : null;
if (!$item) return;
$display = isset($item->text) ? $item->text : '';
$app = Factory::getApplication();
$icon = null;
$aria = '';
// Determine icon and ARIA label
switch ((string)$display) {
case Text::_('JLIB_HTML_START'):
$icon = $app->getLanguage()->isRtl() ? 'fas fa-angle-double-right' : 'fas fa-angle-double-left';
$aria = Text::_('JLIB_HTML_START');
break;
case Text::_('JPREV'):
$display = Text::_('JPREVIOUS');
$icon = $app->getLanguage()->isRtl() ? 'fas fa-angle-right' : 'fas fa-angle-left';
$aria = Text::_('JPREVIOUS');
break;
case Text::_('JNEXT'):
$icon = $app->getLanguage()->isRtl() ? 'fas fa-angle-left' : 'fas fa-angle-right';
$aria = Text::_('JNEXT');
break;
case Text::_('JLIB_HTML_END'):
$icon = $app->getLanguage()->isRtl() ? 'fas fa-angle-double-left' : 'fas fa-angle-double-right';
$aria = Text::_('JLIB_HTML_END');
break;
default:
$icon = null;
$aria = Text::sprintf('JLIB_HTML_GOTO_PAGE', (string)$display);
break;
}
// Wrap icon if it exists (do NOT escape HTML)
if ($icon !== null) {
$display = '<span class="' . $icon . '" aria-hidden="true"></span>';
}
// Determine classes and link
$class = '';
$link = '';
// Current page
if (!empty($item->active) && $item->active) {
$class = 'active';
$aria = Text::sprintf('JLIB_HTML_PAGE_CURRENT', (string)$display);
echo '<li class="page-item ' . $class . '" aria-current="page">';
echo '<span class="page-link" aria-label="' . htmlspecialchars($aria, ENT_QUOTES, 'UTF-8') . '">' . $display . '</span>';
echo '</li>';
// Clickable link
} elseif (!empty($displayData['active']) && $displayData['active']) {
if ($app->isClient('administrator')) {
$limit = isset($item->base) ? (int)$item->base : 0;
$prefix = isset($item->prefix) ? $item->prefix : '';
$link = 'href="#" onclick="document.adminForm.' . htmlspecialchars($prefix, ENT_QUOTES, 'UTF-8') . 'limitstart.value=' . $limit . '; Joomla.submitform();return false;"';
} else {
$link = isset($item->link) ? 'href="' . htmlspecialchars($item->link, ENT_QUOTES, 'UTF-8') . '"' : '';
}
echo '<li class="page-item">';
echo '<a class="page-link" ' . $link . ' aria-label="' . htmlspecialchars(strip_tags($aria), ENT_QUOTES, 'UTF-8') . '">';
echo $display;
echo '</a></li>';
// Disabled link
} else {
$class = 'disabled';
echo '<li class="page-item ' . $class . '">';
echo '<span class="page-link" aria-hidden="true">' . $display . '</span>';
echo '</li>';
}
Thanks