- Issue created by @developer-rocha
- Issue was unassigned.
- Status changed to Needs work
over 1 year ago 10:32am 30 May 2023 - 🇧🇪Belgium tim-diels Belgium 🇧🇪
Hi @developer-rocha, thanks for the report of this issue. It is indeed a bad decision and coding from me that i hardcoded it to 'nl'.
But you should get the language from the configured content type rather than the sites default language.
Something in the line of:$entityTypeManager = \Drupal::service('entity_type.manager'); $content_type = $entityTypeManager->getStorage('node_type')->load($type); $default_language = $content_type->get('langcode');
Get the language from the content type. Needs a little testing tho to make sure it works with all settings on the content type.
So when no language is passed, fall back to the sites default language. - 🇵🇹Portugal developer-rocha
Hi @tim-diels, you are welcome!
As we talked privately, your suggestion to remove the language form solved the problem.
-
tim-diels →
committed 6a5973e3 on 1.0.x
Issue #3363504 by developer-rocha, tim-diels: The domain is not being...
-
tim-diels →
committed 6a5973e3 on 1.0.x
- Status changed to Fixed
over 1 year ago 10:51am 30 May 2023 Automatically closed - issue fixed for 2 weeks with no activity.