Pathauto only creates an alias for language selected for a node, so if you link to a node in another language, the default now shows node/[nid] when linking to other languages. It is a valid use case when a user wants to link to a node in another language and show a nice alias.

To explain it better, you have a node A (English) linking to a node B (Spanish) with a link like node/[nid of node B].
Currently the intlinks module tries to fetch a URL alias for the node/* link in the language of node A. It would be better to fetch an alias in the language that node B is actually written in.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

seanB created an issue. See original summary.

seanB’s picture

Status: Active » Needs review
FileSize
792 bytes

Attached is a patch to fix this.

Samvel’s picture

Seems you should get langcode above, not in internal condition