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 »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Configuration issue: where is the domain name taken for the urls ?
Pages: [1]

Author Topic: Configuration issue: where is the domain name taken for the urls ?  (Read 990 times)

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Configuration issue: where is the domain name taken for the urls ?
March 01, 2010, 02:52:44 pm
Hi,

The unsubscribe link is correct with the right http://example.org, but for the mail tracking clicks, the domain name is empty, so links are http://site/all/module...

Doesn't work very well when you click on it ;(

Any idea what setting to change where ? (I'm using a multiple websites config on drupal).

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Configuration issue: where is the domain name taken for the urls ?
March 02, 2010, 04:04:50 am
Quote from: xavier on March 01, 2010, 02:52:44 pm
for the mail tracking clicks, the domain name is empty, so links are http://site/all/module...

If I get it right, these links are constructed by CRM_Mailing_BAO_TrackableURL::getTrackerURL(), which uses $config->userFrameworkResourceURL. Is your resource URL correct?
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Configuration issue: where is the domain name taken for the urls ?
March 10, 2010, 10:02:08 am
Ah, ok, I only did put the /sites/all/modules... instead of the full htttp://...

This is another thing to change when you put in prod.

Can I modify the CRM_Mailing_BAO_TrackableURL::getTrackerURL() to check that if it isn't a full URL (doesn't include a http://), it appends CIVICRM_UF_BASEURL ?
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Configuration issue: where is the domain name taken for the urls ?
March 11, 2010, 12:57:47 am
Quote from: xavier on March 10, 2010, 10:02:08 am
Can I modify the CRM_Mailing_BAO_TrackableURL::getTrackerURL() to check that if it isn't a full URL (doesn't include a http://), it appends CIVICRM_UF_BASEURL ?

Sure (just make sure you cater for https:// as well). I doubt this can introduce any regression (given that the tracking does not work at all when it’s not a full URL anyway), just let me know when you do that so I can eyeball the fix. :)
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Configuration issue: where is the domain name taken for the urls ?

This forum was archived on 2017-11-26.