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

LanguageNegotiationContentEntity: make links to entities only change the content language

$
0
0

Hi,

when using "Content" language negotiation, I would expect to be able to change (as far as possible) the content language and interface language independently one form the other, but there are still some issues that prevent that, see the meta-issue #2860901: Doubts about Content language negotiation.

One of the things I noticed is that LanguageNegotiationContentEntity::processOutbound() operates only when these conditions are met:

  1. URL points to an entity;
  2. AND it refers to the current request.

The result of this is that on non-entity pages, like for instance the front page, a link to an entity would change the interface language because the query string to change the content language is missing.

Look at the image:
content language negotiation processOutboud changes interface language

This could be fixed by relaxing the conditions from above in LanguageNegotiationContentEntity::meetsContentEntityRoutesCondition().

A tentative patch is on its way.

Thanks,
Antonio


Viewing all articles
Browse latest Browse all 296763

Trending Articles



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