Hi Peter,
I'd like to give this module a try. At the moment however, I think search_exclude_routing.yml is missing from the repository.
public function alterRoutes(RouteCollection $collection) {
if ($route = $collection->get('search.view_node_search')) {
$route->setRequirement('_access', 'FALSE');
}
if ($route = $collection->get('search.view_exclude_search')) {
$route->setPath('search/node');
}
}
search.view_exclude_search is not found, and as per your code above, the default '/search/node' is now restricted.
Or am I missing something?
Closed: won't fix
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.