diff --git a/core/modules/rest/src/Plugin/views/display/RestExport.php b/core/modules/rest/src/Plugin/views/display/RestExport.php index d14100e..7b0e755 100644 --- a/core/modules/rest/src/Plugin/views/display/RestExport.php +++ b/core/modules/rest/src/Plugin/views/display/RestExport.php @@ -267,7 +267,9 @@ public function collectRoutes(RouteCollection $collection) { // Format as a string using pipes as a delimiter. if ($formats = $style_plugin->getFormats()) { - $requirements['_format'] = implode('|', $formats); + // Always allow to at least access the page via HTML. This will return + // The first non HTML format which is configured/available. + $requirements['_format'] = implode('|', $formats + ['html']); } // Add the new requirements to the route.