I have two language (FR and EN), I created a pattern for users ( user/[user:name] ) and I haven't checked any languages for the pattern.

The aliases generated was on French (instead of NONE).

So when the site is in French I have the aliases generated ( user/[user:name] ) but not when the site is in English.

How can I resolve this problem?

PS : I use drupal 8.4.0

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

imen ch created an issue. See original summary.

badrange’s picture

Status: Needs work » Active

Changing status as there is no patch on this issue.

harpreet16’s picture

This issue is not present in the updated versions. Below are exact versions that I used for my findings:

  1. Drupal version installed: 8.8.6-dev
  2. pathauto version: 8.x-1.6

Note: Proper multilingual configurations need to be in place for this to work.

Steps to configure:
After making site multilingual.
Go to /admin/config/regional/content-language and make user entity translatable.
Adding translation to a specific user generates associated alias for that language.

harpreet16’s picture

Assigned: harpreet16 » Unassigned
Status: Active » Needs review
waspper’s picture

Of course, making user entities translatable could avoid issue. But what about when it's not needed? I mean, when account is used to store just credentials, or it's not needed because any reason related to site workflow, it will not work :)

I've created a small patch here: https://www.drupal.org/project/pathauto/issues/3127656

NOTE: It's a duplicated issue, but not sure if we should stay here, or better to manage this topic there. Feel free to close/ask :)

Berdir’s picture

Status: Needs review » Closed (duplicate)

Closing as a duplicate of the other issue.