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.
Currently, when choosing an optional language the ‘Home’ link in the breadcrumb contains -front- when using ‘LANGUAGE_NEGOTIATION_PATH’. For example, if I choose Dutch, the home-link will be ‘localhost/nl/-front-’.
The $path ‘-front-’ is handled special in function ‘url’ (in common.inc’ but ‘nl/-front-’ is not.
Attached patch alters function ‘language_url_rewrite’ (in language.inc) to check if the $path = ‘-front-’ and will only add the language prefix in that case.
Nick
Comment | File | Size | Author |
---|---|---|---|
front_0.patch | 635 bytes | desbeers | |
Comments
Comment #1
Gábor HojtsyIndeed, this was an outstanding issue. Thanks for the fix.
Comment #2
(not verified) CreditAttribution: commented