diff --git a/core/modules/path/path.module b/core/modules/path/path.module
index 38cb57beee..ba158aa7d5 100644
--- a/core/modules/path/path.module
+++ b/core/modules/path/path.module
@@ -38,27 +38,57 @@ function path_help($route_name, RouteMatchInterface $route_match) {
 }
 
 /**
- * Implements hook_form_BASE_FORM_ID_alter() for \Drupal\node\NodeForm.
+ * Adds the path settings group to the advanced section.
+ *
+ * @param array $form
+ *   The form array.
+ * @param \Drupal\Core\Form\FormStateInterface $form_state
+ *   The form state object.
  */
-function path_form_node_form_alter(&$form, FormStateInterface $form_state) {
-  $node = $form_state->getFormObject()->getEntity();
+function path_entity_form(array &$form, FormStateInterface $form_state) {
+  $entity = $form_state->getFormObject()->getEntity();
   $form['path_settings'] = [
     '#type' => 'details',
     '#title' => t('URL path settings'),
     '#open' => !empty($form['path']['widget'][0]['alias']['#value']),
     '#group' => 'advanced',
-    '#access' => !empty($form['path']['#access']) && $node->hasField('path') && $node->get('path')->access('edit'),
+    '#access' => !empty($form['path']['#access']) && $entity->hasField('path') && $entity->get('path')->access('edit'),
     '#attributes' => [
       'class' => ['path-form'],
     ],
     '#attached' => [
       'library' => ['path/drupal.path'],
     ],
-    '#weight' => 30,
   ];
   $form['path']['#group'] = 'path_settings';
 }
 
+/**
+ * Implements hook_form_BASE_FORM_ID_alter() for \Drupal\node\NodeForm.
+ */
+function path_form_node_form_alter(&$form, FormStateInterface $form_state) {
+  path_entity_form($form, $form_state);
+  $form['path_settings']['#weight'] = 30;
+}
+
+/**
+ * Implements hook_form_BASE_FORM_ID_alter() for \Drupal\taxonomy\TermForm.
+ */
+function path_form_taxonomy_term_form_alter(&$form, FormStateInterface $form_state) {
+  path_entity_form($form, $form_state);
+  $form['advanced']['#default_tab'] = 'edit-path-settings';
+  $form['path_settings']['#weight'] = -2;
+}
+
+/**
+ * Implements hook_form_BASE_FORM_ID_alter() for \Drupal\media\MediaForm.
+ */
+function path_form_media_form_alter(&$form, FormStateInterface $form_state) {
+  path_entity_form($form, $form_state);
+  $form['advanced']['#default_tab'] = 'edit-path-settings';
+  $form['path_settings']['#weight'] = -2;
+}
+
 /**
  * Implements hook_entity_base_field_info().
  */
diff --git a/core/modules/taxonomy/src/TermForm.php b/core/modules/taxonomy/src/TermForm.php
index 6de48e0af4..fc707bfd09 100644
--- a/core/modules/taxonomy/src/TermForm.php
+++ b/core/modules/taxonomy/src/TermForm.php
@@ -25,11 +25,17 @@ public function form(array $form, FormStateInterface $form_state) {
     $form_state->set(['taxonomy', 'parent'], $parent);
     $form_state->set(['taxonomy', 'vocabulary'], $vocabulary);
 
+    $form['advanced'] = [
+      '#type' => 'vertical_tabs',
+      '#weight' => 99,
+    ];
+
     $form['relations'] = [
       '#type' => 'details',
       '#title' => $this->t('Relations'),
+      '#group' => 'advanced',
       '#open' => $vocabulary->getHierarchy() == VocabularyInterface::HIERARCHY_MULTIPLE,
-      '#weight' => 10,
+      '#weight' => -1,
     ];
 
     // \Drupal\taxonomy\TermStorageInterface::loadTree() and
