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 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.
Comment | File | Size | Author |
---|---|---|---|
#6 | pathologic-2782717-6.patch | 730 bytes | cgmonroe |
| |||
#4 | pathologic-2782717-4.patch | 819 bytes | kfu |
#3 | pathologic-2782717-3.patch | 640 bytes | tobiberlin |
Comments
Comment #2
tobiberlinSame 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.
Comment #3
tobiberlinThe attached patch solved it for me
Comment #4
kfu CreditAttribution: kfu commentedIn 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)
Comment #5
efaj CreditAttribution: efaj commentedI faced the same issue, kfu's patch solved it properly.
Comment #6
cgmonroe CreditAttribution: cgmonroe as a volunteer commentedKFU'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.
Comment #7
cgmonroe CreditAttribution: cgmonroe as a volunteer commentedSetting to needs review to trigger tests.
Comment #10
dercheffeSame problem with my site.
Comment #11
derhasi CreditAttribution: derhasi at undpaul commentedIt 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.Comment #12
dwwIndeed, lets focus efforts on the older and more general solution to this problem.
Thanks!
-Derek