CRM-8416 Drupal 7's URL alias doesn't work with contribution forms

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.0.0, 4.0.1, 4.0.2
    • Fix Version/s: 3.4.5
    • Component/s: CiviContribute, Usability
    • Labels:
      None

      Description

      Drupal 7 lets you specify URL aliases so that you can have multiple URLs that access the same information. You can add/edit/delete aliases here: /admin/config/search/path/list.

      I added an alias so you can go to /donate instead of /civicrm/contribute/transact?reset=1&id=1. Drupal 7 seems to actually rewrite this path to be "/civicrm/contribute/transact%3Freset%3D1%26id%3D1" instead, which ends up displaying the CiviContribute dashboard (or, if you're not logged in, access denied) instead of the contribution page.

      It seems like this is more of a bug in Drupal 7 than in CiviCRM, but if there were a way to access contribution pages that didn't have "?", "=", or "&" in the URL then it would work.

        Attachments

          Activity

          [CRM-8416] Drupal 7's URL alias doesn't work with contribution forms
          Donald A. Lobo added a comment -

          Hey Micah:

          i wrote this patch independent of this issue on a plane ride recently Can you give it a shot and see if it works. I did this for D6, suspect its very close for D7

          Donald A. Lobo added a comment -

          K:

          can u review and commit the patch

          Micah Lee added a comment -

          The patch doesn't stick in CiviCRM 4.04:

          patching file drupal/civicrm.module
          Hunk #1 FAILED at 358.
          1 out of 1 hunk FAILED – saving rejects to file drupal/civicrm.module.rej

          However, I did just put all the lines in the patch in the civicrm_invoke() function in drupal/civicrm.module, and that did work! Thanks lobo!

            People

            • Assignee:
              Kurund Jalmi
              Reporter:
              Micah Lee

              Dates

              • Created:
                Updated:
                Resolved: