Closed (duplicate)
Project:
CKEditor Link
Version:
6.x-1.2
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
12 Jan 2011 at 14:23 UTC
Updated:
12 Jan 2011 at 16:48 UTC
By default CKEditor Link store in the node body the actual node path :
plugins/link/plugin.js, line 144
Drupal.settings.basePath + extractPath(dialog.getValueOf('info', 'drupal_path')))
which means when you work on localhost, the actual href contains /my_working_dir/node/123.
So when going online, the links are broken.
Wouldn't it be safer to store the links with href="node/123" ? Since it's filtered using _ckeditor_link_filter_process(), it will be rewrited to the proper link.
Comments
Comment #1
anrikun commentedMmmm, I prefer that filter does not become mandatory.
By the way, this is a duplicate of #962114: Adjusting Base of Link Path.
Read it, thanks!
Comment #2
Jerhu commentedDidn't know about Pathologic, thanks for the tip :)
Comment #3
anrikun commentedYes you should use it as it will also solve problems with image/file paths etc.