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

CommentFileSizeAuthor
front_0.patch635 bytesdesbeers
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Gábor Hojtsy’s picture

Status: Needs review » Fixed

Indeed, this was an outstanding issue. Thanks for the fix.

Anonymous’s picture

Status: Fixed » Closed (fixed)