When viewing the pagination on the frontend, if you inspect the code for the 'Prev' arrow, the Aria label reads 'Go to next page'. All the other buttons are correct.
The Aria label should read 'Go to previous page'.
The Aria label reads 'Go to next page'.
Checked on Joomla 5.3.1
I had a look at the code and in 'layouts/joomla/pagination/link.php' the code for the case string is incorrect. All the buttons use 'case Text::' but the Previous button uses 'case $item->text === Text::'. When you update it to match the rest, you then get the expected behaviour.
Labels |
Removed:
?
|
Labels |
Added:
No Code Attached Yet
|
I cannot confirm your issue on Joomla 5.3.1.
Which template is it? Can you post a link or a screenshot of the sourcecode?
Labels |
Added:
Information Required
|
I have checked it on two sites, both of which have custom built templates. However I have also checked it on one of those sites on our dev server and changed the template to Cassiopeia, and it is broken on it too. You can view the page using the custom template here https://mosl.co.uk/news-and-events/news?start=15 but I've also attached two screenshots showing the pagination and the associated code for the custom template and Cassiopeia.
I can see the problem on your site but I cannot replicate this on a clean installation with the cassiopeia template. I'm sure you still have my email details so If you want to set me up with an account on the site I can take a closer look for you
I was sure I found the same issue on one of our other sites too but not I can't find the issue again, so I must have been mistaken. The site where there is an issue is a site we inherited which has a lot of custom plugins and components built by the previous developers, so it could be some of them causing a conflict, however none of them are being used on that page. We'll have a look internally again in case it is some of those things.
it is almost certainly a template override for the list layouts
Thank you. You could also check Language overrides.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2025-06-09 12:06:51 |
Closed_By | ⇒ | redevodm |
It was indeed language overrides. There were two entries in there, one for JNEXT and one for JPREV but both of them had blank values. I had noticed them before, but didn't think they were the issue since the values were blank. I removed them though and that has resolved it.
Further update to this issue. When I made that change, it then made changes to the next change button too. So the functionality of the next page button was still working as expected, but the arrow was now pointing left and the aria label stated 'Go to previous page'
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/45572.