diff -u b/core/modules/field_ui/src/Form/EntityFormDisplayEditForm.php b/core/modules/field_ui/src/Form/EntityFormDisplayEditForm.php --- b/core/modules/field_ui/src/Form/EntityFormDisplayEditForm.php +++ b/core/modules/field_ui/src/Form/EntityFormDisplayEditForm.php @@ -80,14 +80,11 @@ * {@inheritdoc} */ protected function getDisplayModesLink() { - // Get the route name. - $url_object = \Drupal::service('path.validator')->getUrlIfValid('admin/structure/display-modes/form'); - $route_name = $url_object->getRouteName(); return [ '#type' => 'link', '#title' => t('Manage form modes'), - '#url' => Url::fromRoute($route_name), + '#url' => Url::fromRoute('entity.entity_form_mode.collection'), ]; } diff -u b/core/modules/field_ui/src/Form/EntityViewDisplayEditForm.php b/core/modules/field_ui/src/Form/EntityViewDisplayEditForm.php --- b/core/modules/field_ui/src/Form/EntityViewDisplayEditForm.php +++ b/core/modules/field_ui/src/Form/EntityViewDisplayEditForm.php @@ -112,15 +112,12 @@ /** * {@inheritdoc} */ - protected function getDisplayModesLink() { - // Get the route name. - $url_object = \Drupal::service('path.validator')->getUrlIfValid('admin/structure/display-modes/view'); - $route_name = $url_object->getRouteName(); + protected function getDisplayModesLink() {; return [ '#type' => 'link', '#title' => t('Manage view modes'), - '#url' => Url::fromRoute($route_name), + '#url' => Url::fromRoute('entity.entity_view_mode.collection'), ]; }