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 enter any special “tags,” path prefixes, or other non-content garbage into 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.

Pathologic for Drupal 7 is out of beta! When upgrading from Drupal 6, instances of Pathologic in input/text formats should be preserved, along with settings. But please file an issue if something goes wrong (bonus points if you can provide a database dump of your site before running update.php after installing Pathologic for Drupal 7).

Multi-lingual support for Pathologic is a bit iffy. Please read and post in the issue queues if you have any issues, particularly when running Drupal 7.

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.

Downloads

Recommended releases

Version Downloads Date Links
7.x-1.4 tar.gz (11.25 KB) | zip (12.77 KB) 2011-Oct-20 Notes
6.x-3.4 tar.gz (8.95 KB) | zip (9.98 KB) 2010-Dec-05 Notes

Other releases

Version Downloads Date Links
7.x-2.0-beta1 tar.gz (11.62 KB) | zip (13.17 KB) 2011-Dec-31 Notes

Development releases

Project Information


Maintainers for Pathologic

Issues for Pathologic

To avoid duplicates, please search before submitting a new issue.
All issues
Bug reports
Oldest open issue: 7 Jun 08