Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment | File | Size | Author |
---|---|---|---|
pattern-user_pathauto.png | 34.87 KB | imen ch | |
alias-pathauto.PNG | 16.42 KB | imen ch | |
#3 | user-translation.png | 151.91 KB | harpreet16 |
#3 | Screen Shot 2020-04-21 at 1.01.33 PM.png | 167.63 KB | harpreet16 |
Comments
Comment #2
badrange CreditAttribution: badrange at Digia commentedChanging status as there is no patch on this issue.
Comment #3
harpreet16 CreditAttribution: harpreet16 commentedThis issue is not present in the updated versions. Below are exact versions that I used for my findings:
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.
Comment #4
harpreet16 CreditAttribution: harpreet16 commentedComment #5
waspper CreditAttribution: waspper as a volunteer and at Skilld commentedOf 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 :)
Comment #6
BerdirClosing as a duplicate of the other issue.