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 »
  • CiviMail installation and configuration (Moderator: Donald Lobo) »
  • broken URL in tracking links
Pages: [1]

Author Topic: broken URL in tracking links  (Read 736 times)

dflasse

  • I post occasionally
  • **
  • Posts: 56
  • Karma: 0
    • Tout peut arriver
broken URL in tracking links
June 11, 2014, 02:25:39 am
From time to time, we must send the same campaign over and over again with only small updates (agenda, venue details, etc). It might not be good practice but it is the way our members expect to be informed.

We recently noticed that some links included in our campaign are broken: a "%20" appears in the link sent to recipients. For example: we have a link to www.hostname.og/abc/def that is changed to http://www.hostname.org/sites/a%20l%20l/modules/civicrm/extern/url.php?u=36959&qid=638275 (I underlined the %20 - blank characters). If I manually edit the URL and remove the %20, the link is correct.

What is really odd is that the %20 seems to appear over time. We did not have the problem on the first versions of the mailing. It also look like, the %20 is moving. It is not always located at the same place in the URL (it used to be between 'sit' and 'es'). Most of the links on the mailing are ok. Only some of them are broken.

adixon

  • I post frequently
  • ***
  • Posts: 314
  • Karma: 19
    • Blackfly Solutions
Re: broken URL in tracking links
June 11, 2014, 06:22:01 am
That %20 is an url-encoded space. So something is adding spaces, which get converted to those "%20".

Without any other information, I'd say that's a sign of a pretty broken system - I'd blame your host as a first line of inquiry, since I can't imagine your code doing this. If there was only one of them, I might think it's related to your url length and something that decided it needed to be split and then something else that's putting it back together. Something is mangling the url after it leaves CiviCRM, in any case, maybe some php or apache module.

Ah, but this is going out as mail, so perhaps it's some anti-spam something gone amuck.

dflasse

  • I post occasionally
  • **
  • Posts: 56
  • Karma: 0
    • Tout peut arriver
Re: broken URL in tracking links
June 11, 2014, 06:24:55 am
I doubt it. Only some links are broken. Not all. And only on this very often used campaign. It is clearly civimail that breaks it since the table in the database has the right tracking data.

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: broken URL in tracking links
June 11, 2014, 03:29:00 pm
i have seen similar before where content from one mailing has been copied in to another and the %20 ends up in the source so I would be looking at the html but sounds like you have ruled that out
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

dflasse

  • I post occasionally
  • **
  • Posts: 56
  • Karma: 0
    • Tout peut arriver
Re: broken URL in tracking links
June 12, 2014, 03:18:27 am
Yes. The source is correct. And so is the url field is the table civicrm_mailing_trackable_url.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • CiviMail installation and configuration (Moderator: Donald Lobo) »
  • broken URL in tracking links

This forum was archived on 2017-11-26.