Pathologic

Garrett Albright - April 15, 2008 - 01:17

Pathologic is an input filter which can correct paths in links and images in your Drupal content in situations which would otherwise cause them to “break;” for example, if the URL of the site changes, or the content was moved to a different server. Pathologic can also solve the problem of missing images and broken links in your site’s RSS feeds. See more example use cases on the documentation page.

Pathologic is designed to be a simple, set-it-and-forget-it utility. You don't need to type any special “tags” or characters in your content to trigger Pathologic to work; it finds paths it can manage in your content automatically.

As Pathologic is an input filter, installation and configuration is a little more difficult than it is for a standard module — but it's still not that tough, if you follow the full installation and configuration guide here.

Alternatives to Pathologic:

  • Path Filter can also transform relative paths into absolute ones, if you type "internal:" at the beginning of the path. However, it cannot also correct absolute paths as Pathologic can. (Path Filter predates Pathologic substantially; however, I was unaware of its existence when I started Pathologic.) For those who wish to migrate away from Path Filter, Pathologic can be used as a drop-in replacement.
  • URL Replace Filter is a svelte alternative, but it requires you to configure which URLs you want it to operate on, and its Drupal 6 branch has not yet reached beta status.
  • Absolute src can absolute-ize paths, but only those in src attributes, and it doesn't work as an input filter (so its results aren't cached).
  • Relative Paths to Absolute URLs is a very simple solution for prefixing paths with a domain. Pathologic encompasses its capabilities.

Releases

Official releasesDateSizeLinksStatus
6.x-2.0-beta222009-Aug-138.81 KBRecommended for 6.xThis is currently the recommended release for 6.x.
Development snapshotsDateSizeLinksStatus
6.x-2.x-dev2009-Jul-218.63 KBDevelopment snapshotDevelopment snapshots are automatically regenerated and their contents can frequently change, so they are not recommended for production use.


 
 

Drupal is a registered trademark of Dries Buytaert.