I see a couple of long threads in here about language so maybe this has been addressed or fixed in a patch. I'm calling drupal_lookup_path() in theme breadcrumbs to check for aliases on any part of the request string and building links. drupal_lookup_path() uses a default language (can't be empty) but the language column is empty in {url_alias}.

Does the latest install fix this or is there another way to go without coping over some core code? Thanks!

395: pathauto_create_alias('node', 'bulkupdate', $placeholders, "node/$node->nid", $node->nid, $node->type, $node->language);

Comments

dave reid’s picture

Status: Active » Postponed (maintainer needs more info)

I'm not sure what you mean. drupal_lookup_path uses this SQL which will still catch language-neutral aliases (aka language is an empty string):
SELECT dst FROM {url_alias} WHERE src = '%s' AND language IN('%s', '') ORDER BY language DESC, pid DESC

nicknickoli’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

You're right, sorry. :)