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

In a Multi-Language Site, Entity Reference URL links use only the ORIGINAL node/taxonomy path for all languages

$
0
0

In a Multi-Language Site, Entity Reference URL links use only the ORIGINAL node/taxonomy path for all languages.

For example, I have an entity reference field on node-type "Products", referencing the same type as accessories. But when the image of this entity reference is displayed (currently as a teaser) the content link of the image field always is the path of the original node of the entity referenced and not the translated path. However, the title/label url link's path has no problem, it uses the correct language path. I tried seeing if it would work if I set the entity reference field to "Users may translate this field" but still the same problem, so am guessing it might be a bug. Could someone confirm this and help me work out what is going on.

Current setup:

Drupal 8.1.1
PHP 5.6.21
Mysql 5.6.30
Apache/2.4.20

Multi-Language Site: Japanese(Default) / English

URL to the Test Site:
http://seiken.hosting.japan-server.com/products/endoscope-washer/espal-b...

Code used in node--product.html-twig

{% if view_mode == "teaser" %}<section id="product-image" class="content-container">
			{{ content.field_product_image[0] }}<div{{ title_attributes.addClass('node__title') }}><a href="{{ url }}" rel="bookmark">{{ label }}</a></div><div class="body-teaser-wrapper">
			  {{ content.body }}</div>

			{{ content.field_product_type }}
		  </section>

{% endif %}

Viewing all articles
Browse latest Browse all 294468

Trending Articles



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