diff -u b/core/modules/views/src/Plugin/views/field/LinkBase.php b/core/modules/views/src/Plugin/views/field/LinkBase.php --- b/core/modules/views/src/Plugin/views/field/LinkBase.php +++ b/core/modules/views/src/Plugin/views/field/LinkBase.php @@ -208,7 +208,9 @@ */ protected function addLangcode(ResultRow $row) { $entity = $this->getEntity($row); - $this->options['alter']['language'] = $this->getEntityTranslation($entity, $row)->language(); + if ($this->languageManager->isMultilingual()) { + $this->options['alter']['language'] = $this->getEntityTranslation($entity, $row)->language(); + } } /** diff -u b/core/modules/views/tests/src/Functional/Handler/FieldEntityLinkBaseTest.php b/core/modules/views/tests/src/Functional/Handler/FieldEntityLinkBaseTest.php --- b/core/modules/views/tests/src/Functional/Handler/FieldEntityLinkBaseTest.php +++ b/core/modules/views/tests/src/Functional/Handler/FieldEntityLinkBaseTest.php @@ -82,7 +82,7 @@ // view page, others to the English one (which has no path prefix here). $base_path = \Drupal::request()->getBasePath(); $expected_prefix = ($language->getId() != 'en' ? $language->getId() . '/node' : 'node'); - $href = $base_path . $expected_prefix . '/' . $entity->id(); + $href = $base_path . '/' . $expected_prefix . '/' . $entity->id(); $this->assertSession()->linkByHrefExists($href); } }