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.
Hi, you have missed the language option in your rebuilding link hook.
Which should be
399 if (isset($link['href'])) {
400 $link_options = array('attributes' => $link['attributes'],
401 'query' => $link['query'],
402 'fragment' => $link['fragment'],
403 'absolute' => FALSE,
404 'html' => $html,
405 'language' => $link['language']); // <----
406 $output .= l($link['title'], $link['href'], $link_options);
407 }
Otherwise this may cause all the other lauanges lost the prefix of that lauange link.
I have attached a patch file.
thanks
Comment | File | Size | Author |
---|---|---|---|
blogbuzz-multilanguage-template.patch | 1.01 KB | wqmeng |
Comments
Comment #1
cannedbrain CreditAttribution: cannedbrain commentedThanks! This solved my problem with a multilingual site.
Comment #2
manuel.adanThank you too for the patch, it should be ported into dev.