diff --git a/facets.module b/facets.module
index 40b6366..fca88ad 100644
--- a/facets.module
+++ b/facets.module
@@ -292,7 +292,7 @@ function facets_system_breadcrumb_alter(Breadcrumb &$breadcrumb, RouteMatchInter
         $facet_manager->build($facet);
 
         foreach ($facet->getResults() as $result) {
-          if ($result->isActive()) {
+          if ($result->isActive() || $result->hasActiveChildren()) {
             // Clone the result so we can mark it as inactive to be added to the
             // url parameters when calling buildUrls.
             $cloned_result = clone $result;
diff --git a/tests/src/Functional/HierarchicalFacetIntegrationTest.php b/tests/src/Functional/HierarchicalFacetIntegrationTest.php
index 9d36464..103251d 100644
--- a/tests/src/Functional/HierarchicalFacetIntegrationTest.php
+++ b/tests/src/Functional/HierarchicalFacetIntegrationTest.php
@@ -290,6 +290,49 @@ protected function createHierarchialTermStructure() {
     $this->terms[4]->save();
   }
 
+  /**
+   * Tests hierarchy breadcrumbs.
+   */
+  public function testHierarchyBreadcrumb() {
+    $this->drupalGet('admin/config/search/facets');
+    $this->clickLink('Configure', 1);
+    $default_config = [
+      'filter_key' => 'f',
+      'url_processor' => 'query_string',
+      'breadcrumb[active]' => TRUE,
+      'breadcrumb[group]' => TRUE,
+    ];
+    $this->drupalPostForm(NULL, $default_config, 'Save');
+
+    $block = [
+      'region' => 'footer',
+      'label' => 'Breadcrumbs',
+      'provider' => 'system',
+    ];
+    $this->drupalPlaceBlock('system_breadcrumb_block', $block);
+    $this->resetAll();
+
+    $edit = [
+      'facet_settings[expand_hierarchy]' => '1',
+      'facet_settings[use_hierarchy]' => '1',
+      'facet_settings[translate_entity][status]' => '1',
+      'facet_sorting[display_value_widget_order][status]' => '1',
+      'facet_sorting[display_value_widget_order][settings][sort]' => 'ASC',
+      'facet_sorting[count_widget_order][status]' => '0',
+      'facet_sorting[active_widget_order][status]' => '0',
+    ];
+    $this->drupalPostForm($this->facetEditPage, $edit, 'Save');
+
+    $initial_query = ['search_api_fulltext' => 'foo', 'test_param' => 1];
+    $this->drupalGet('search-api-test-fulltext', ['query' => $initial_query]);
+    $this->clickLink('Child 2');
+    $this->checkFacetIsActive('Child 2');
+
+    $this->assertSession()->pageTextContains('hierarchical facet: Parent 1');
+    $this->clickLink('hierarchical facet: Parent 1');
+    $this->checkFacetIsActive('Parent 1');
+  }
+
   /**
    * Creates several test entities with the term-reference field.
    */
