- Issue created by @lisotton
- 🇧🇪Belgium lisotton Brussels
The solution I found is to consider also the base path when doing the str_replace. This solved the issue for my case.
- Issue was unassigned.
- Status changed to Closed: duplicate
5 days ago 5:49pm 27 March 2025 - 🇦🇷Argentina hanoii 🇦🇷UTC-3
I apologize for not finding this before, I did search but didn't spot this one with the keywords I used. I ended up coming up with a similar solution. Both are OK and really simple but mine reduces code and uses a core function so I'll think it's a safer approach. I'll mark this as duplicate.
Thanks.
Please comment on the related issue 🐛 Doesn't work if Drupal is served from a subdirectory Active so you can receive due credit there as well.
It does need a test as it was mentioned there.