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

  1. Standard Install Profile
  2. Download pathauto and apply patch from #2756703: URL Alias not saving in some cases, install/enable
  3. Enable Content Translation and add another language
  4. Go to /admin/config/regional/content-language
  5. Enable Basic Page Translations; unmark Basic Page URL alias
  6. Create pathauto pattern for basic page; leave language checkboxes unmarked to apply to all languages
  7. Create basic page content item and save
  8. Observe pathauto pattern alias created
  9. Translate content item and save
  10. Observe pathauto pattern alias created
  11. Go to /admin/config/search/path
  12. Observe two aliases: one for each language

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Comments

jasonawant created an issue. See original summary.

jasonawant’s picture

Issue summary: View changes
tanc’s picture

I 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?

vflirt’s picture

That 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.

benjifisher’s picture

benjifisher’s picture

rteijeiro’s picture

rohit.rawat619’s picture

Assigned: Unassigned » rohit.rawat619
rohit.rawat619’s picture

Assigned: rohit.rawat619 » Unassigned
Status: Active » Needs review
StatusFileSize
new23.75 KB
tyler36’s picture

Patch #9 appears to be style fixes only.

berdir’s picture

Status: Needs review » Closed (duplicate)

Per #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.