When the pathologic filter is activated for my CKEditor, then the language prefix is stripped from internal links. E.g /nl/portfolio is changed to /portfolio.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jyve created an issue. See original summary.

tobiberlin’s picture

Same here... even adding the domain with the language prefix to the settings of pathologic (All base paths for this site) does not avoid this behavior.

tobiberlin’s picture

The attached patch solved it for me

kfu’s picture

In my case adding the patch caused images not to be shown anymore. Instead, I added the path prefix to the URL if the language object is set (patch is attached)

efaj’s picture

I faced the same issue, kfu's patch solved it properly.

cgmonroe’s picture

KFU's patch did not apply cleanly for me. Got: **** unexpected end of file in patch

However, manually adding the change to the module fixed the problem.

Attached is a clean version of the patch.

cgmonroe’s picture

Status: Active » Needs review

Setting to needs review to trigger tests.

The last submitted patch, 3: pathologic-2782717-3.patch, failed testing.

The last submitted patch, 4: pathologic-2782717-4.patch, failed testing.

dercheffe’s picture

Same problem with my site.

derhasi’s picture

It looks to me like this is a more generic issue of how URLs are processed. I think #2418369: Internal URL handling (language prefixes, base://, ...) would solve that more generically by utilizing internal:. I have to figure out the details there and will try to re-roll a patch there.

dww’s picture

Indeed, lets focus efforts on the older and more general solution to this problem.

Thanks!
-Derek