RTC NPM Resource Changed bug PR-5.4-dev Pending

User tests: Successful: Unsuccessful:

avatar LadySolveig
LadySolveig
2 Mar 2026

Pull Request resolves Issue found CMS release team testing session on: February 12, 2026.

  • I read the Generative AI policy and my contribution is either not created with the help of AI or is compatible with the policy and GNU/GPL 2 or later.

Summary of Changes

Server-side active path detection to prevent flashing icons in admin menu sidebar with fallbacks for edge cases.

Menu active state detection and propagation:

  • Added a new setActivePath method to mark the active menu path server-side. The existing JS logic was largely transferred 1:1 to the backend method.

JavaScript integration and fallback logic:

  • Modified admin-menu.es6.js to strip server-rendered mm-show/mm-active classes before initializing MetisMenu, then re-apply them to avoid transition issues and ensure the active state is preserved without visual glitches.
  • Added a client-side fallback in admin-menu.es6.js to detect and set the active menu item if the server-side logic fails.

Testing Instructions

  1. Open the Joomla backend, expand the Components menu, and select one of the submenu entries.

  2. Test other submenu entries to see if the icons are glitching and if everything loads directly without flickering with the fix.

  3. Compare if all menu and submenu items are loaded and reachable as before.

  4. Install a third party componenent that has menu items in the sidebar in backend. All should be visible and work as before.

Important

For this to test an update of the media asset is required, please use the prebuilt packages or run npm install.

Actual result BEFORE applying this Pull Request

Glitching icons in the admin menu sidebar when opening a submenu item as the active page

Bildschirmaufzeichnung.vom.2026-03-02.02-12-53.mp4

Expected result AFTER applying this Pull Request

Bildschirmaufzeichnung.vom.2026-03-02.02-14-43.mp4

Link to documentations

Please select:

  • Documentation link for guide.joomla.org:

  • No documentation changes for guide.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

2dbe436 16 Feb 2026 avatar LadySolveig cs
avatar LadySolveig LadySolveig - open - 2 Mar 2026
avatar LadySolveig LadySolveig - change - 2 Mar 2026
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 2 Mar 2026
Category Modules Administration JavaScript Repository NPM Change
avatar LadySolveig LadySolveig - change - 2 Mar 2026
The description was changed
avatar LadySolveig LadySolveig - edited - 2 Mar 2026
avatar LadySolveig LadySolveig - change - 2 Mar 2026
The description was changed
avatar LadySolveig LadySolveig - edited - 2 Mar 2026
avatar LadySolveig LadySolveig - change - 2 Mar 2026
The description was changed
avatar LadySolveig LadySolveig - edited - 2 Mar 2026
avatar LadySolveig LadySolveig - change - 2 Mar 2026
The description was changed
avatar LadySolveig LadySolveig - edited - 2 Mar 2026
avatar LadySolveig LadySolveig - change - 2 Mar 2026
The description was changed
avatar LadySolveig LadySolveig - edited - 2 Mar 2026
avatar ThomasFinnern ThomasFinnern - test_item - 2 Mar 2026 - Not tested
avatar ThomasFinnern ThomasFinnern - test_item - 2 Mar 2026 - Tested successfully
avatar ThomasFinnern
ThomasFinnern - comment - 2 Mar 2026

I have tested this item ✅ successfully on a921dc4


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

avatar dautrich dautrich - test_item - 2 Mar 2026 - Tested successfully
avatar dautrich
dautrich - comment - 2 Mar 2026

I have tested this item ✅ successfully on a921dc4


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

avatar richard67 richard67 - change - 2 Mar 2026
Status Pending Ready to Commit
Labels Added: NPM Resource Changed bug PR-5.4-dev
avatar richard67
richard67 - comment - 2 Mar 2026

RTC


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

avatar muhme muhme - change - 5 Mar 2026
Labels Added: RTC
avatar muhme
muhme - comment - 5 Mar 2026

✅ Final test before merge using JBT

  • Before the PR, seen the short time flashing icons in Firefox and Chrome on macOS
  • Applied PR with Patch Tester, npm run build:js and full page reload
    • Tested in Firefox, Chrome, EDGE and Safari
      • No short time flashing icons anymore
      • Menu and sub menu entries are working
    • Patch Tester and Akeeba Backup menu entries are working
    • No JS console messages, no Joomla log entries
avatar muhme muhme - close - 5 Mar 2026
avatar muhme muhme - merge - 5 Mar 2026
avatar muhme muhme - change - 5 Mar 2026
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2026-03-05 06:20:25
Closed_By muhme
avatar muhme
muhme - comment - 5 Mar 2026

Thank you @LadySolveig for your contribution. Thank you @ThomasFinnern and @dautrich for testing.

Add a Comment

Login with GitHub to post a comment