No Code Attached Yet bug
avatar OctavianC
OctavianC
3 Feb 2021

Steps to reproduce the issue

Navigate to /administrator/index.php?option=com_content&view=articles. Notice Content > Articles is open.
Next, add some dummy parameters: /administrator/index.php?option=com_content&view=articles&test=1.
Or even: /administrator/index.php?option=com_content&view=articles#test

Expected result

Content > Articles shows open.

Actual result

Menu is completely closed and no menu item shows active.

System information (as much as possible)

Additional comments

This seems to be caused by media/mod_menu/js/admin-menu.js:

if (currentUrl === link.href) {

Perhaps changing this to:

if (currentUrl.indexOf(link.href) === 0) {

would work better

avatar OctavianC OctavianC - open - 3 Feb 2021
avatar joomla-cms-bot joomla-cms-bot - change - 3 Feb 2021
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 3 Feb 2021
avatar sandramay0905
sandramay0905 - comment - 11 Apr 2021

Menu is completely closed and no menu item shows active.

this is what i get for administrator/index.php?option=com_content&view=articles=articles&test=1

grafik

avatar ReLater
ReLater - comment - 11 Apr 2021

this is what i get

Because you have a typo in your url.
&view=articles=articles
has to be
&view=articles

avatar sandramay0905
sandramay0905 - comment - 11 Apr 2021

Because you have a typo in your url.

@ReLater You're right, haven't seen that.

Now tried /administrator/index.php?option=com_content&view=articles&test=1 and the view is shown as (same for /administrator/index.php?option=com_content&view=articles#test):

Bildschirmfoto 2021-04-11 um 13 03 13

but @OctavianC got Menu is completely closed and no menu item shows active.

avatar brianteeman
brianteeman - comment - 11 Apr 2021

It depends if the component is already open. Go to another component and then paste in the urls and you will see that the correct component is not displayed in the sidebar menu

avatar sandramay0905
sandramay0905 - comment - 11 Apr 2021

thanks @brianteeman for your comment, now i understand what's the issue. Sorry, i haven't understand before.

avatar brianteeman
brianteeman - comment - 11 Apr 2021

@sandramay0905 Thats fine. I only knew because I had something similar in my own component

avatar Hackwar Hackwar - change - 22 Feb 2023
Labels Added: No Code Attached Yet bug
Removed: ?
avatar Hackwar Hackwar - labeled - 22 Feb 2023
avatar richard67 richard67 - change - 9 Mar 2026
Status New Closed
Closed_Date 0000-00-00 00:00:00 2026-03-09 17:58:54
Closed_By richard67
avatar richard67 richard67 - close - 9 Mar 2026
avatar richard67
richard67 - comment - 9 Mar 2026

Closing as PR #47271 which fixes this issue has been merged meanwhile.

avatar brianteeman
brianteeman - comment - 9 Mar 2026

@richard67 This is NOT fixed by that PR please re-open

avatar richard67 richard67 - change - 9 Mar 2026
Status Closed New
Closed_Date 2026-03-09 17:58:54
Closed_By richard67
avatar richard67 richard67 - reopen - 9 Mar 2026
avatar richard67
richard67 - comment - 9 Mar 2026

@richard67 This is NOT fixed by that PR please re-open

Hmm, why does that PR claim to solve it?

avatar brianteeman
brianteeman - comment - 9 Mar 2026

@richard67 I have no idea because there is nothing in the PR description that refers to the issue here

avatar richard67
richard67 - comment - 9 Mar 2026

@richard67 I have no idea because there is nothing in the PR description that refers to the issue here

@brianteeman The very first line of that PR‘s description is:

Pull Request resolves #32273

avatar brianteeman
brianteeman - comment - 9 Mar 2026

yes but there is nothing in the description of what the pr does that matches anything here afaict

avatar richard67
richard67 - comment - 9 Mar 2026

@brianteeman it adds the „active“ property here: https://github.com/joomla/joomla-cms/pull/47271/changes#diff-27c98aa110e4d0bce12440e8d505d0ed75e87ac2e3660d6909fa68efd3c379baR551

So I assumed it fixes the issue here because it is about the missing active menu, and the PR also improves detection of the active menu by the URL, or not?

avatar brianteeman
brianteeman - comment - 9 Mar 2026

its a bigger issue. if you look at the video i posted in that pr you will see.

I just worked out exactly the cause of that issue and its in the component view and not the menu. I will document it fully tomorrow

avatar richard67
richard67 - comment - 9 Mar 2026

Sorry, wrong link in my previous comment. Fixed it.

avatar brianteeman
brianteeman - comment - 9 Mar 2026

@richard67 sorry you can close this. not because it is fixed in #47271 but because it has been fixed by something else much earlier as I cannot replicate the bug with Joomla 5.4.4

avatar richard67
richard67 - comment - 9 Mar 2026

@richard67 sorry you can close this. not because it is fixed in #47271 but because it has been fixed by something else much earlier as I cannot replicate the bug with Joomla 5.4.4

@brianteeman Maybe it was #47268 ?

avatar richard67 richard67 - change - 9 Mar 2026
Status New Closed
Closed_Date 0000-00-00 00:00:00 2026-03-09 22:13:11
Closed_By richard67
avatar richard67 richard67 - close - 9 Mar 2026
avatar richard67
richard67 - comment - 9 Mar 2026

Closing as it could not be reproduced anymore. @OctavianC Feel free to reopen if that was wrong.

avatar brianteeman
brianteeman - comment - 9 Mar 2026

@richard67 sorry you can close this. not because it is fixed in #47271 but because it has been fixed by something else much earlier as I cannot replicate the bug with Joomla 5.4.4

@brianteeman Maybe it was #47268 ?

could be - probably that

Add a Comment

Login with GitHub to post a comment