diff --git a/core/modules/path/path.module b/core/modules/path/path.module
index 24309b7..4a1ce58 100644
--- a/core/modules/path/path.module
+++ b/core/modules/path/path.module
@@ -46,7 +46,7 @@ function path_form_node_form_alter(&$form, FormStateInterface $form_state) {
   $form['path_settings'] = array(
     '#type' => 'details',
     '#title' => t('URL path settings'),
-    '#open' => !empty($form['path']['widget'][0]['alias']['#value']),
+    '#open' => !empty($form['path']['widget'][0]['alias']['#default_value']),
     '#group' => 'advanced',
     '#access' => !empty($form['path']['#access']) && $node->hasField('path') && $node->get('path')->access('edit'),
     '#attributes' => array(
