core/modules/views_ui/src/ViewListBuilder.php | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/core/modules/views_ui/src/ViewListBuilder.php b/core/modules/views_ui/src/ViewListBuilder.php index cc0bb53..c82acbd 100644 --- a/core/modules/views_ui/src/ViewListBuilder.php +++ b/core/modules/views_ui/src/ViewListBuilder.php @@ -256,17 +256,9 @@ protected function getDisplaysList(EntityInterface $view) { if ($display->hasPath()) { $path = $display->getPath(); if ($view->status() && strpos($path, '%') === FALSE) { - // Wrap this in a try/catch as tryng to generate links to some - // routes may throw a NotAcceptableHttpException if they do not - // respond to HTML, such as RESTExports. - try { - // @todo Views should expect and store a leading /. See: - // https://www.drupal.org/node/2423913 - $rendered_path = \Drupal::l('/' . $path, Url::fromUserInput('/' . $path)); - } - catch (NotAcceptableHttpException $e) { - $rendered_path = '/' . $path; - } + // @todo Views should expect and store a leading /. See: + // https://www.drupal.org/node/2423913 + $rendered_path = \Drupal::l('/' . $path, Url::fromRoute($display->getRouteName())); } else { $rendered_path = '/' . $path;