Closed (fixed)
Project:
Administration menu
Version:
6.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
7 Apr 2009 at 02:12 UTC
Updated:
22 May 2009 at 01:58 UTC
I use the CiviCRM module for my site. Many of the top level menu options for CiviCRM include URL parameters such as:
/civicrm/contact/search?reset=1
/drupal/civicrm/group?reset=1
the Administration Menu module seems to truncate these links and eliminate the parameters from the end of the URL string. These parameters are necessary for the proper function of the module.
Is there any way to turn off your module's behavior of eliminating this truncation?
Thanks!
Comments
Comment #1
stoob commentedLink as appears in the administration menu (note lack of ?reset=1)
/civicrm/contact/search
Comment #2
sunCould you please test with 3.x? Thanks.
Comment #3
stoob commentedI tested with 3.x and the admin_menu module still doesn't work with CiviCRM -- still truncates the ?reset=1 parameter on all the CiviCRM menu links. Hopefully this fix can be part of your next release. Thanks.
Comment #4
stoob commentedComment #5
stoob commentedHi, is this issue of your module removing ?parameters=X from the link code going to be addressed in 6.x-1.5? It was reported for 1.3 but not addressed in 1.4. It is a verified bug, currently unassigned. Please give an update, thanks!
Comment #6
sunI don't use CiviCRM, so I am unable to debug this.
Also, I don't quite understand this issue. admin_menu contains administrative links only. The path of the links you mentioned do not start with admin/*, so they should not be contained in the menu.
That said, please note that there won't be another release for 1.x. 1.4 was the last of the 1.x series. Development is actively happening in 3.x.
Comment #7
xurizaemonsun,
Would you consider a patch for 3.x-dev which made it possible to pass in a query entry for each of the links arrays returned from hook_admin_menu()? I believe that's all we need to make CiviCRM (or any other tool which uses a query string) and admin_menu play well together.
Currently we hand back:
Just appending "?q=abc" onto the end of the path will result in it being URL encoded, so that's not what we want.
While the actual menu entries are not located inside the admin/* space, the functionality is administrative and the distinction between what's in admin/* and what isn't is fairly opaque to most users.
Exposing CiviCRM functionality via admin_menu occupies the same space as exposing menu entries like node/add (which is not an admin/* path either). Many CiviCRM users really appreciate the integration of admin_menu and CiviCRM, and we'd like to improve on that.
Comment #8
sunI didn't even know that any module implemented that hook. Good to know, because I already thought about rewriting that.
Why can't you do it the same way as admin_menu does it?
Comment #9
xurizaemonpatch supplied to CiviCRM @ http://issues.civicrm.org/jira/browse/CRM-4513 so fix not required in admin_menu
thanks sun, much appreciated