Problem/Motivation
Entity bundle with pathauto pattern and untranslated URL field configuration creates language specific aliases instead of single untranslated alias with no language.
Steps To Reproduce
- Standard Install Profile
- Download pathauto and apply patch from #2756703: URL Alias not saving in some cases, install/enable
- Enable Content Translation and add another language
- Go to /admin/config/regional/content-language
- Enable Basic Page Translations; unmark Basic Page URL alias
- Create pathauto pattern for basic page; leave language checkboxes unmarked to apply to all languages
- Create basic page content item and save
- Observe pathauto pattern alias created
- Translate content item and save
- Observe pathauto pattern alias created
- Go to /admin/config/search/path
- Observe two aliases: one for each language
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | changes_PathautoPattern.php-3069519-9.patch | 23.75 KB | rohit.rawat619 |
Comments
Comment #2
jasonawantComment #3
tancI started going through the test steps to see whether I could confirm the issue but noticed in step 6 that leaving language checkboxes unchecked to apply to all languages: wouldn't that create aliases for each language anyway?
Have you confirmed this is not the default behaviour even before patching?
Comment #4
vflirt commentedThat languages checkboxes on the pattern are used as condition to decide if the pattern is applicable to the content not to generate aliases for all languages. By default core generates aliases always with language :( which can be fixed with https://www.drupal.org/project/drupal/issues/2689459 however we need similar fix for pathauto as well.
Comment #5
benjifisher@vflirt: Thanks for the reference to #2689459: If you don't want to translate your URL alias, the original URL alias won't work with your translations. I am adding that as a related issue.
Comment #6
benjifisherIs this issue related to, or a duplicate of, #3127656: Language settings are not respected or #2946354: Alias not using language undefined when alias is not translatable?
Comment #7
rteijeiro commentedDefinitely related to #2946354: Alias not using language undefined when alias is not translatable. Added to related issues.
Comment #8
rohit.rawat619 commentedComment #9
rohit.rawat619 commentedComment #10
tyler36 commentedPatch #9 appears to be style fixes only.
Comment #11
berdirPer #7, not jut related but a duplicate I think, neither issue title is great and easy to find though. Closing this as a duplicate, as #10 said, #9 is pure CS changes and not useful.