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.
We're using ESI in a multilingual site, and the block we've converted to ESI is always shown in the default site language. We traced that problem to function esi_build_uri
which does not take language into consideration.
To fix this, we're using function url
instead of appending base_path()
. Patch attached.
Comment | File | Size | Author |
---|---|---|---|
esi-language.patch | 601 bytes | infojunkie |
Comments
Comment #1
infojunkieComment #2
mikeytown2 CreditAttribution: mikeytown2 commentedThanks! Patch has been committed. That chunk of code came from AdvAgg's advagg_build_uri() in case your wondering.