Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 294168

LinkBase doesn't respect translations

$
0
0

Steps to reproduce:
* Enable Content Translation.
* Add a language (eg: French).
* Enable translation for a content type, eg: Page.
* Add some content, and translate it. I created nodes "Dog" (en) and "Chien" (fr).
* Add a view over your content type, with a page display, showing a table of fields.
* Add a field to the view "Link to Content".
* Look at the view output. Hover your cursor over the French link, notice it goes to an English path. See LinkResult.png

There's some code in LinkBase::addLangCode() that sounds like it should be relevant, but I see no evidence that it actually does anything. It looks like cruft left over from an old implementation. @dwehner in IRC agreed.

I guess we should add in EntityTranslationRenderTrait to LinkBase.


Viewing all articles
Browse latest Browse all 294168

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>