escaping a query string in a menu item?
joachim - July 15, 2008 - 16:30
I need to add a menu item linking to a page within CiviCRM.
The path for that is civicrm/user?reset=1, but when I click on the link the browser tries to load civicrm/user%3Freset%3D1, which Civi doesn't like (it appears to default to the admin dashboard).
I'm guessing some sort of escaping of the ? and = is needed, but how?

You'd probably have better
You'd probably have better luck posting this within the issue queue of the project.
Hmm... looks like you're
Hmm... looks like you're right -- it's down to CiviCRM.
I thought it was a menu thing, but adding a menu item for, say, http://en.wikipedia.org/w/index.php?title=Edward_Elgar&action=edit works fine.
on second thoughts... making
on second thoughts...
making a menu item with the path 'index.php?title=Edward_Elgar&action=edit' (the tail end of the Wikipedia URL) produces a link that tries to open this in the browser: 'index.php%3Ftitle%3DEdward_Elgar%2526action%3Dedit'
So it looks like it *is* something to do with how Drupal's menu treats links.
This is a Drupal core bug
This is a Drupal core bug that has been around for a couple years.
It is theoretically solved in Drupal 6.
Here is the original issue:
http://drupal.org/node/118072
If someone could test and confirm with the SVN branch of CiviCRM 2.1 (which is Drupal 6 compatible) and report results on that issue, it would be appreciated.
David Geilhufe
Try CiviCRM!