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) »
  • base url added to links (TinyMCE)
Pages: [1]

Author Topic: base url added to links (TinyMCE)  (Read 1577 times)

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
base url added to links (TinyMCE)
October 13, 2009, 08:49:30 am
I had a user getting an issue where they created links within an html email and the base url was added to the front of the link (though they didn't want it). The specific situation arose when trying to create an opt-out link -- because that token includes http://, all you really need is the href="{action.optOutUrl}" -- but TinyMCE rewrites that to: http://domain.com/administrator/{action.optOutUrl}

Anyway, this can be changed through the TinyMCE config options:
civicrm/packages/HTML/QuickForm/tinymce.php

by adding: convert_urls : false

I propose this be added to the default config settings for TinyMCE.
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: base url added to links (TinyMCE)
October 14, 2009, 10:21:39 pm
I chatted with Kurund about this today and he plans on looking into your suggestion in the next few days.
Protect your investment in CiviCRM by  becoming a Member!

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: base url added to links (TinyMCE)
October 14, 2009, 11:56:19 pm
Brian,
Quote
by adding: convert_urls : false

This is already fixed and is part of v3.0.x

Kurund
Found this reply helpful? Support CiviCRM

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: base url added to links (TinyMCE)
October 15, 2009, 03:41:55 am
Thanks guys.
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • base url added to links (TinyMCE)

This forum was archived on 2017-11-26.