Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When I paste this into a node:
<a href="http://example.com/foo:bar">1</a>
<a href="/foo:bar">2</a>
pathologic renders:
<a href="http://example.com/foo:bar">1</a>
<a href="http://mydomain.com/foo%3Abar">2</a>
The %3A part is wrong and causes problems in systems which may not be able to decode the URL. Why encode the URL?
I can solve this by removing pathologic, or by going to admin/config/content/formats/full_html and unchecking "Correct URLs with Pathologic", but I'd rather not.
Comments
Comment #2
ioannis.cherouvim CreditAttribution: ioannis.cherouvim commentedComment #3
ioannis.cherouvim CreditAttribution: ioannis.cherouvim commentedComment #4
Garrett Albright CreditAttribution: Garrett Albright as a volunteer commentedBlame drupal_encode_path(), which is called by url(), which in turn is called by Pathologic when it does its thing.
Sorry, but there's no way to fix this. =/