Paths not altered in any combination of filter use

drupal999 - August 27, 2008 - 03:05
Project:Pathologic
Version:6.x-1.1-beta13
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:postponed (maintainer needs more info)
Description

I am using 6.4 drupal, FCKeditor, pathlogic, and some other addon modules. Configured input filter with pathlogic at the bottom of the list of filters. Tried it with other filters and with ONLY the pathologic input filter. No modification of the paths during my tests.

Some additional documentation with clear examples would be helpful.

#1

Garrett Albright - August 27, 2008 - 07:18
Status:active» postponed (maintainer needs more info)

I know that Pathologic and TinyMCE do not get along very well. FCKeditor may have similar issues.

Try removing Pathologic from the input format. Then check out the paths that FCKeditor is spitting out. Are they absolute paths without domain and protocol fragments (do they have a slash at the beginning)?

If in doubt, try pasting the source that FCKeditor is creating into a reply.

The next release of Pathologic will have an optional tweak which will hopefully improve TinyMCE compatibility. If FCKeditor is having similar issues, the update should improve compatibility with it as well.

#2

himerus - September 2, 2008 - 04:25

I'm having the same issue with FCKeditor...

My links are being presented as follows:

<a href="/node/290">free copy from Apress</a>

I've set Pathlogic at the bottom of the filters, and tried it at the top just to check, and neither worked.
I need this module desparately now that I'm using FeedBurner, all my local links are broken.

#3

himerus - September 2, 2008 - 05:03

Okay, so I was doing further reading on this same issue (http://drupal.org/node/298558#comment-986128), and found the solution posted by Garrett already.

All you have to do is go to the Input Filters administration, edit the input type in question, go to the "configure" tab, and place a "/" in the "additional paths to be considered local" section.

This will force it to work on links that start with a /

I've got it working, and now instead of:
<a href="/node/290">free copy from Apress</a>

I get:

<a href="http://himerus.com/blogs/jake-strawn/pro-drupal-development-second-editon-inroute">free copy from Apress</a>

This should work for any site using FCKeditor or TinyMCE.

I always prefer to prefix my URLS with / to make sure it is pointing to the right location, but leave off the full URL in case I change domains, or mirror content at a later date.

Nice work on the easy solution Garrett!!

 
 

Drupal is a registered trademark of Dries Buytaert.