bug or feature?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

andiart’s picture

Here is my patch.

mareks’s picture

Issue summary: View changes

Hi!

I tried this module for the first time today (7.x-1.x-dev 2014-Sep-22).

* I have 3 languages: EN, ES and FR.
* I have 2 nodes, where node/1 is in EN and node/2 is a translation to the first one in ES.
* Both nodes have nice URL aliases.

However, the Languageinterface block gives me the translated link without the alias?

I did a small hack to it and changed one line to fix it.

File: languageinterface.module Line: 132
$link['path'] = 'node/' . $nid . '/' . $rest;
$link['path'] = drupal_get_path_alias('node/'.$nid, $lang).'/'.$rest;

Was it a bug or feature? :)

Thanks,