Patch (to be ported)
Project:
Consistent Language Interface
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 May 2012 at 08:58 UTC
Updated:
22 Sep 2014 at 13:35 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
andiart commentedHere is my patch.
Comment #2
mareks commentedHi!
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,