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.
In expire_cache_derivative()
, when domain-based language negotiation is used, the resulting URL is absolute regardless, as a side-effect of language_url_rewrite()
:
$path_alias = url($path, array('absolute' => FALSE));
Recommend getting the path alias directly, with
$path_alias = drupal_get_path_alias($path);
Comments
Comment #1
Liam MorlandDrupal 6 is no longer supported. If this issue exists in Drupal 7, please reopen and provide details.