RTC bug PR-5.3-dev Pending

User tests: Successful: Unsuccessful:

avatar Flowman
Flowman
9 Jun 2025

Pull Request for Issue #32816 .

Summary of Changes

The language filter is configured for automatic language change and SEF is enabled.

When a logged-out user attempts to access a menu item that requires specific access permissions (e.g., https://test.com/en/somepagewithaccess), they are correctly redirected to the login page. The return URL is set to the intended destination, so the user should be redirected there after a successful login.

However, after signing in, the user is taken back to the login page instead of the originally requested page.

The PR checks if mode_sef is enabled and does the correct redirect.

Testing Instructions

  1. Create a site with 2 languages and SEF enabled.
  2. Create a menu item with access registered.
  3. Enabled automatic language change in Language Filter plugin.
  4. Try to access the restricted menu URL.
  5. Login to the site.

Check the screen capture in the original issue for more info.

Actual result BEFORE applying this Pull Request

User get redirected to the login page when the language filter is configured for automatic language change and SEF is enabled.

Expected result AFTER applying this Pull Request

User get redirected to the correct page when the language filter is configured for automatic language change and SEF is enabled.

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

avatar Flowman Flowman - open - 9 Jun 2025
avatar Flowman Flowman - change - 9 Jun 2025
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 9 Jun 2025
Category Front End Plugins
avatar Flowman Flowman - change - 9 Jun 2025
Labels Added: PR-5.3-dev
avatar ceford
ceford - comment - 10 Jun 2025

I can't get this PR to display default behaviour so have given up on testing it!


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

avatar exlemor
exlemor - comment - 1 Aug 2025

@Flowman I, too, like @ceford have no issues with the BEFORE condition (which for me actually is the AFTER condition) on a Joomla 5.3.2 test site and a 5.3.2 live site - both work as you explain that it should if the PR was applied without the need for the patch.

Is it possible that since 2021, the Joomla Core has fixed this?

Either that or there is a missing step in the Testing Instructions (which do appear pretty clear, easy, thorough), I even tried things beyond your description like setting the Article to a specific language but it still worked fine without the patch.

Looking forward to your reply/thoughts.

avatar brianteeman
brianteeman - comment - 2 Aug 2025

I can confirm the bug. The key to replicating the bug is to make sure that the menu items are associated.

Amended instructions

  • Create a site with 2 languages eg french and english and SEF enabled and a language switcher module
  • Create a french article and a menu item to that article with access registered.
  • Create an english article and a menu item to that article with access registered
  • associate the two menu items
  • Enabled automatic language change in Language Filter plugin.
  • Try to access the restricted menu URL.
  • Login to the site.
  • Log out of the site and using the language switcher module change to the second language
  • Try to access the restricted menu URL.
  • Login to the site.

In the second example you are redirected to the english article on login

avatar brianteeman brianteeman - test_item - 2 Aug 2025 - Tested successfully
avatar brianteeman
brianteeman - comment - 2 Aug 2025

I have tested this item ✅ successfully on 577b3aa


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

avatar exlemor exlemor - test_item - 2 Aug 2025 - Tested successfully
avatar exlemor
exlemor - comment - 2 Aug 2025

I have tested this item ✅ successfully on 577b3aa

I have successfully tested this. Thank you @Flowman for the PR, and @brianteeman for the updated testing instructions which worked perfectly.


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

avatar richard67 richard67 - change - 2 Aug 2025
Status Pending Ready to Commit
avatar richard67
richard67 - comment - 2 Aug 2025

RTC


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

avatar QuyTon QuyTon - change - 3 Aug 2025
Labels Added: RTC
avatar rdeutz rdeutz - change - 5 Aug 2025
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2025-08-05 11:01:11
Closed_By rdeutz
Labels Added: bug
avatar rdeutz rdeutz - close - 5 Aug 2025
avatar rdeutz rdeutz - merge - 5 Aug 2025
avatar rdeutz
rdeutz - comment - 5 Aug 2025

Thanks

Add a Comment

Login with GitHub to post a comment