Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The reporting menu should not use the module= query param in the URL to determine the active menu section #8624

Closed
diosmosis opened this issue Aug 22, 2015 · 4 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Milestone

Comments

@diosmosis
Copy link
Member

If a plugin adds it's own page to an existing menu section (say, for example, to the Goals plugin), the menu will not be selected when the plugin's page is loaded. This is because Piwik will only activate/highlight the Goals plugin section if the module is 'Goals', but since the page is added by another plugin, the module will be different.

The menu JS should use another mechanism to figure out which menu section is currently active.

@diosmosis diosmosis added Bug For errors / faults / flaws / inconsistencies etc. c: Design / UI For issues that impact Matomo's user interface or the design overall. labels Aug 22, 2015
@diosmosis diosmosis added this to the 2.15.0 milestone Aug 22, 2015
@tsteur
Copy link
Member

tsteur commented Aug 24, 2015

FYI: For reporting menu it already works differently in 3.0 branch

@mnapoli
Copy link
Contributor

mnapoli commented Aug 24, 2015

Is it necessary to fix it in 2.15 if it's already changed in 3.0 then?

@diosmosis
Copy link
Member Author

It is necessary if @mattab still thinks it is required to fix the problem affecting a new plugin. Probably a good idea either way for the LTS version.

@mattab
Copy link
Member

mattab commented Aug 26, 2015 via email

diosmosis pushed a commit that referenced this issue Aug 30, 2015
…and query the IDs when detecting the active menu item, instead find the link w/ the appropriate parameters get the parent li element. Also, do not activate the menu item until all angular menu group dropdowns are rendered.
diosmosis pushed a commit that referenced this issue Sep 8, 2015
…and query the IDs when detecting the active menu item, instead find the link w/ the appropriate parameters get the parent li element. Also, do not activate the menu item until all angular menu group dropdowns are rendered.
diosmosis added a commit that referenced this issue Sep 9, 2015
Fixes #8624, rewrite the way menu.js detects the active menu item (don't set elements, look for links w/ the right URL)
@mattab mattab removed the c: Design / UI For issues that impact Matomo's user interface or the design overall. label Oct 13, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Projects
None yet
Development

No branches or pull requests

4 participants