- Im using :

+ Drupal 8.3.3

+ Enable Multiple Language -> created 3 languages : EN (English ) , FR ( French) , DE ( Germany ) -> used configure default at url: /config/regional/language/detection

+ Enable Module 'Administration Language Negotiation' -> then go to admin/config/regional/language/detection -> Enable `Administration Languages` with default configuration. ( use language EN for backend )

The Bug:

- Create a new node with ID: 1

if access url /fr/node/1/edit -> all the labels are not be translated into language EN , and the same for updating node/1 on language : DE ( Germany )

So would you like to detect this problems ?

Thanks

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

drupal.tips created an issue. See original summary.

jefuri made their first commit to this issue’s fork.

jefuri’s picture

Title: Cannot keep default language of admin when translated a node and some paths !!! » URL negotiation prefixes url incorrectly because of administration language
jefuri’s picture

Status: Active » Needs review

The language passed from the administration language negotiation in your current request, is also passed to the outbound processor in LanguageNegotiationUrl, filling the prefix setting.

Adding also an outbound processor to the administration language negotiator (incase it is used in the current page) to remove that prefix would be the solution. Check the MR.

James Hawthorn-Byng’s picture

I can confirm that this patch fixes the issue of admin links taking you to the incorrect language.

Pol’s picture

Hi,

I made some comments on the MR but they are not yet addressed, so I'm not going to commit anything now.

As soon as the fixes are done, I'll merge it.

jefuri’s picture

Done

Anybody’s picture

Assigned: Unassigned » Grevil

Thank you very much @jefuri we'll have a look and try to reproduce this. So does this still work for you, after some months?
Any ideas for adding a test?

Anybody’s picture

Version: 8.x-1.1 » 2.x-dev