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

Add a Comment

Login with GitHub to post a comment