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

ioannis.cherouvim created an issue. See original summary.

ioannis.cherouvim’s picture

Title: unecessary encoding of URL » unnecessary encoding of URL
ioannis.cherouvim’s picture

Issue summary: View changes
Garrett Albright’s picture

Status: Active » Closed (won't fix)

Blame 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. =/