CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Could this be a Drupal Menu bug or CiviCRM Bug
Pages: [1]

Author Topic: Could this be a Drupal Menu bug or CiviCRM Bug  (Read 2630 times)

anthonybol

  • Guest
Could this be a Drupal Menu bug or CiviCRM Bug
August 02, 2008, 03:00:24 pm
I am trying to build a custom menu in Drupal to take users directly to specific event sign up pages in the CiviCRM module (CiviEvents).  CiviCRM uses urls like this: civicrm/event/info?reset=1&id=5. Notice the ampersand in the url. 

When I paste that link into the path field in the Add Item page for a menu item, the resulting menu is displayed but the url for the link is civicrm/event/info%3Freset%3D1%2526id%3D5. This takes the user to a different page which is something I would prefer to skip over.

Is this a bug or is there a way to force the ampersand in the url to be displayed? If I turn clean urls off, the url looks right, but when I click on it it still shows up in the address bar with the HTML url encoding.

Drupal 5.9
CiviCRM 1.9.13019

Any ideas?

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Could this be a Drupal Menu bug or CiviCRM Bug
August 03, 2008, 12:28:11 pm
Check this: http://forum.civicrm.org/index.php/topic,3974.0.html

HTH

Kurund
Found this reply helpful? Support CiviCRM

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Could this be a Drupal Menu bug or CiviCRM Bug
August 03, 2008, 05:01:11 pm
The short answer is... Drupal 6.x + CiviCRM 2.1 resolves this problem. Starting with those versions you will be able to use complete OR relative CiviCRM URL's as Drupal menu items.

EXAMPLE
A relative link to an online contribution page:

 civicrm/contribute/transact?reset=1&id=1

This works in Drupal 6.x with CiviCRM 2.1 (which will be hitting Alpha shortly).

For Drupal 5.x with CiviCRM 2.0 or 1.9 you will need to use a complete URL

 http://<drupal site>/civicrm/contribute/transact?reset=1&id=1
Protect your investment in CiviCRM by  becoming a Member!

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Could this be a Drupal Menu bug or CiviCRM Bug
January 06, 2009, 06:54:43 pm
My experience is this only works if there is a '?' in the url. Adding extraneous ones to the url seems to make the url work (e.g. before the &)
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

techshoptn

  • I’m new here
  • *
  • Posts: 8
  • Karma: 0
Re: Could this be a Drupal Menu bug or CiviCRM Bug
February 25, 2009, 12:39:55 pm
I know this is an older post, but I wanted to comment that David's suggestion worked form me.

I changed my menu path from:
   civicrm/profile/create&reset=1&gid=2
to:
   civicrm/profile/create?reset=1&gid=2

and now I can display a profile page from a Drupal menu path.

Thanks David!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Could this be a Drupal Menu bug or CiviCRM Bug

This forum was archived on 2017-11-26.