Help us to help you!

Our aim is to offer you the best service possible, to do this we need to know: (1.) Joomla! version (2.) Server type (3.) Editor version (4.) Browsers type & Version and any (5.) Error messages you may have, for help in finding this information please - click here…We would also invite you to read our form rules before posting - read more…

Welcome, Guest
Please Login or Register.    Lost Password?
Go to bottomPage: 1
TOPIC: Inserting Links
#307
Inserting Links 1 Year, 9 Months ago Karma: 0
I am really starting to get aggravated with the insert link feature on here. I will insert a standard link.com into the insert link area, but it will eliminate the http:// and the html will just be link.com. When that happens, the browsers reads it as mylink.com/link.com.

How can I go about keeping the http:// in my links?!

Thanks
Love this WYSIWYG Editor!
ytown
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#309
Re: Inserting Links 1 Year, 9 Months ago Karma: 0
flashfs
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#312
Re: Inserting Links 1 Year, 9 Months ago Karma: 0
It still does not work for me. I did a test post, inserted a link, it took off the http:// and now when you click it in that page, it goes to mvred.com/rivals.com.etc

How can I fix this?
Thanks
ytown
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#313
Re: Inserting Links 1 Year, 9 Months ago Karma: 0
I know that. This happens with me too.
I don't know the best way to fix it. I know a way to always insert a "http", but this would break the relative path to files, like files/file.pdf instead of www.site.com/files/file.pdf, because I'm not such an expert programmer..
flashfs
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2010/05/12 13:49 By flashfs.
The administrator has disabled public write access.
 
#327
Re:Inserting Links 1 Year, 8 Months ago Karma: 0
Here's a quick fix:
  1. In a plain text editor, open /plugins/editors/jckeditor/plugins/link/dialogs/link.js
  2. Search for (url.indexOf('www')==-1||url.indexOf('/')===0)
  3. Replace that text with url.indexOf('/')===0
  4. Save the file
This change reverts that piece of code back to the official CKEditor code, in which the "http://" is always present in the HTML unless the URL starts with a "/". If you want to use a relative URL (like "example.html"), use the "<other>" link type instead.
dhammond
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2010/05/17 22:50 By dhammond.
The administrator has disabled public write access.
 
#637
Re:Inserting Links 1 Year, 6 Months ago Karma: 0
Thanks For the information , that was a great help !
donnrri
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
Moderators: Paul.F