- πΊπΈUnited States DamienMcKenna NH, USA
This needs work to confirm the problem via a test that fails without the LinkProcessor change.
When you use this module on a multisite setup and the sites
subfolder of the multisite is the same as the domain name the module strips out both parts the domain name and the subfolder in sites
directory.
Related to this issue (but it did not fix it completely): https://www.drupal.org/project/link_fix_absolute_urls/issues/3161935 β
Enter a link to a file of a multisite into a link field and save.
Example link: https://www.example.com/sites/example.com/files/some-file.pdf
Expected result: /sites/example.com/files/some-file.pdf
Actual result: /sites//files/some-file.pdf
Do not use str_replace()
as it replaces all occurrences of the found string and not only the first one, use preg_replace()
with limit of 1 instead.
-
-
-
Needs work
1.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
This needs work to confirm the problem via a test that fails without the LinkProcessor change.