- achap 🇦🇺
I had a look at the linked issues and tried some patches but they didn't stop this issue occurring. I also downloaded the latest version of this module and and it's still occurring. Where was this fixed? (Using core 10.2)
- Merge request !87Don't fall back to und if different langcode was specified → (Open) created by achap
- Status changed to Needs review
3 months ago 3:52am 29 August 2024 - achap 🇦🇺
Seeing as this is still occurring I re-opened and opened a MR. Added code in the
AliasStorageHelper
class rather thanPathautoGenerator
- Status changed to Needs work
7 days ago 7:09am 27 November 2024 - achap 🇦🇺
Hmmm both my MR and patch #10 will result in duplicate aliases being created every time you save a node if you do something like this in hook_pathauto_alias_alter
if ($context['language'] === \Drupal::languageManager() ->getDefaultLanguage() ->getId()) { $context['language'] = LanguageInterface::LANGCODE_NOT_SPECIFIED; }
- achap 🇦🇺
Updated my fork to handle duplicate aliases caused by altering path alias languages.
Also, I feel like this is actually a bug report, because it's impossible to create a new alias in a different language without overriding the fallback alias. The title could probably be updated too but I'll leave that alone for now.