Problem/Motivation

Content editors who are managing multilingual content on Drupal often use only the English (or they other, native) interface to create content. In these situations, they select the language of the actual content from the "Language" options select element.

Unfortunately, in such situation, the generated path aliases contain mixed language:

  • Token values which are extracted from configs are in the language selected for the interface.
  • Content token values (obviously) have the language of the content item just created.

Steps to reproduce

  1. Node, Content Translation, Config Translation and Pathauto on top of a minimal install
  2. Create an additional language, e.g. Hungarian
  3. Create a content type article, label Article. Translate the content type's label to Hungarian - [HU] article
  4. Create a pattern for nodes: /content/[node:content-type]/[node:title]
  5. Enable content translation for the content type
  6. Visit /hu/node/add/article
  7. Select "English" at the language dropdown, fill in the title and save.
  8. Node is created in English.

Expected: /content/article/english-title - The path alias of the English node is in English, and does not contain any Hungarian word.
Actual: /content/hu-article/english-title Path alias contains Hungarian type label.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Issue fork pathauto-3626652

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:

Comments

huzooka created an issue. See original summary.

huzooka’s picture

Assigned: Unassigned » huzooka

huzooka’s picture

Assigned: huzooka » Unassigned
berdir’s picture

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.