No Code Attached Yet Information Required
avatar redevodm
redevodm
6 Jun 2025

Steps to reproduce the issue

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.

Expected result

The Aria label should read 'Go to previous page'.

Actual result

The Aria label reads 'Go to next page'.

System information (as much as possible)

Checked on Joomla 5.3.1

Additional comments

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.

avatar redevodm redevodm - open - 6 Jun 2025
avatar redevodm redevodm - change - 6 Jun 2025
Labels Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 6 Jun 2025
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 6 Jun 2025
avatar redevodm
redevodm - comment - 9 Jun 2025

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.

avatar chmst
chmst - comment - 9 Jun 2025

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?

avatar chmst chmst - change - 9 Jun 2025
Labels Added: Information Required
avatar chmst chmst - labeled - 9 Jun 2025
avatar redevodm
redevodm - comment - 9 Jun 2025

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.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/45572.

Image
Image

avatar brianteeman
brianteeman - comment - 9 Jun 2025

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

avatar redevodm
redevodm - comment - 9 Jun 2025

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.

avatar brianteeman
brianteeman - comment - 9 Jun 2025

it is almost certainly a template override for the list layouts

avatar chmst
chmst - comment - 9 Jun 2025

Thank you. You could also check Language overrides.

avatar redevodm redevodm - change - 9 Jun 2025
Status New Closed
Closed_Date 0000-00-00 00:00:00 2025-06-09 12:06:51
Closed_By redevodm
avatar redevodm redevodm - close - 9 Jun 2025
avatar redevodm
redevodm - comment - 9 Jun 2025

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.

avatar brianteeman
brianteeman - comment - 9 Jun 2025

@chmst good spot - I hadnt thought of that

Add a Comment

Login with GitHub to post a comment