How to update default value of a datetime field?

I have a content type ‘News’ with a datetime field. I’m trying to alter its default value depending the choice of another field. So, i added some AJAX in the form : <?php /** * Implements hook_form_alter(). */ function module_form_alter(&$form, FormStateInterface $form_state, $form_id) { if (in_array($form_id, [‘node_news_form’, ‘node_news_edit_form’])) { _module_node_news_form_alter($form, $form_state); } } /** *…

Use default language domain when editing translated content

I have a multi-lingual site setup that uses two domains: example.com (Primary/Default English domain) example.mx (Spanish translation) When editing translated content the user is forced to ‘example.mx/node/[nid]/edit’ which forces the user to login for both ‘example.com’ and ‘example.mx’. Is there a way to allow translated content to be edited on a path for the primary…