Skip to content

Commit

Permalink
Removed metadata redirect route change.
Browse files Browse the repository at this point in the history
  • Loading branch information
kepol committed Dec 2, 2023
1 parent c1ad954 commit 7cec726
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/Routing/RouteSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,6 @@ public function alterRoutes(RouteCollection $collection) {
if ($route = $collection->get('entity.node.canonical')) {
$route->setDefault('_controller', '\Drupal\quant\Controller\QuantNodeViewController::view');
}

// Hide metadata redirect route if redirect module isn't installed.
if ($route = $collection->get('quant.metadata_redirect')) {
if (!\Drupal::moduleHandler()->moduleExists('redirect')) {
// Note second parameter is a string.
$route->setRequirement('_access', 'FALSE');
}
}

}

}

0 comments on commit 7cec726

Please sign in to comment.