I have multilingual website and if enter internal path like 'node/123' that points to content in other language, then links stay as is and not translated to path aliases.

Comments

Garrett Albright’s picture

matulis, would you say you're having the same problem as mentioned in this issue?

matulis’s picture

No, they are not related. Will explain my problem.
multilingual website, 2 languages - Latvian as primary (path aliases without language prefix) and English as secondary (path aliases with language prefix 'en').
for example, there are 2 created nodes:
'node/1' in Latvian with path alias 'blogs/mans-pirmais-bloga-ieraksts'
'node/2' in English, path alias 'en/services/it-consulting'
Then I create new node in Latvian 'node/3' and try reference both nodes in node body:
<a href="node/1">Mans pirmais bloga ieraksts</a> and
<a href="node/2">IT consulting services</a>.
Pathologic input filter will show path alias for the first link but not the second, will leave it as is 'node/2'.

matulis’s picture

This is an issue with drupal_lookup_path function from includes/path.inc not pathologic module,
drupal_lookup_path function returns value for current language but there is no need to do that for system internal paths like 'node/1'.

Garrett Albright’s picture

Status: Active » Closed (duplicate)

Closing since things have changed so much. Please see the current language problems thread.