Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
bug or feature?
Comment | File | Size | Author |
---|---|---|---|
#1 | languageinterface-danglingslash-1592042-1.patch | 773 bytes | andiart |
Comments
Comment #1
andiart CreditAttribution: andiart commentedHere is my patch.
Comment #2
mareks CreditAttribution: 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,