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.
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). Give each translation a different path, eg: "/dog" vs "/fr/chien".
* Add a view over your content type, with a page display, showing a table of fields.
* Add a "Path" field.
* Look at the view output. Notice all paths go to the English path.
I guess we should add in EntityTranslationRenderTrait to the Path field.
Comment | File | Size | Author |
---|---|---|---|
#3 | 2667092-3.patch | 7.75 KB | vasi |
PathResult.png | 14.43 KB | vasi |
Comments
Comment #2
vasi CreditAttribution: vasi at Evolving Web commentedSample implmentation: https://github.com/vasi/views_path
Comment #3
vasi CreditAttribution: vasi at Evolving Web commentedHere's a patch with tests. I can also work on #2667096 , but that will require a config migration, so maybe we should get this in first.
Comment #4
dawehnerComment #15
quietone CreditAttribution: quietone at PreviousNext commentedI tested this on 9.5.x, standard install in English with Italian as the second language. I had to do some searching to learn that the "path' field is now 'link to content'. So, I added that and was not able to reproduce this error, the links did not all point to the English version. I followed the steps given in the Issue Summary.
Therefore, closing as cannot reproduce. If you are experiencing this problem on a supported version of Drupal reopen the issue, by setting the status to 'Active', and provide complete steps to reproduce the issue (starting from "Install Drupal core").
Thanks!