Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-10426

Facebook Like button cutting off ID of contribution page

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.1.3, 4.2.0
    • Fix Version/s: 4.2.0
    • Component/s: None
    • Labels:

      Description

      The Facebook Like button is populated by an iframe, and the URL of the contribution page (or whatever else) the social network box is input directly into the href of the iframe. This means that anything after an ampersand gets cut off of the URL, and Facebook users end up liking a page like
      http://sandbox.drupal.civicrm.org/civicrm/contribute/transact?reset=1

      I've edited the template CRM/common/SocialNetwork.tpl to escape the page URL so it's all sent through to Facebook. A patch is attached.

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              andrewhunt Andrew Hunt
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: