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

anrikun’s picture

Status: Active » Closed (duplicate)

Mmmm, 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!

Jerhu’s picture

Didn't know about Pathologic, thanks for the tip :)

anrikun’s picture

Yes you should use it as it will also solve problems with image/file paths etc.