diff --git a/core/modules/views/src/Plugin/views/display/PathPluginBase.php b/core/modules/views/src/Plugin/views/display/PathPluginBase.php
index a6d6b81a933d0786ac5bc53a83f64f03afa8f4ab..b733524033cb78ea39a7c5c40b00a9933f8f01b0 100644
--- a/core/modules/views/src/Plugin/views/display/PathPluginBase.php
+++ b/core/modules/views/src/Plugin/views/display/PathPluginBase.php
@@ -245,8 +245,8 @@ public function collectRoutes(RouteCollection $collection) {
    *   TRUE, when the view should override the given route.
    */
   protected function overrideApplies($view_path, Route $view_route, Route $route) {
-    return $this->overrideAppliesPathAndMethod($view_path, $view_route, $route)
-      && (!$route->hasRequirement('_format') || $route->getRequirement('_format') === 'html');
+    return (!$route->hasRequirement('_format') || $route->getRequirement('_format') === 'html')
+      && $this->overrideAppliesPathAndMethod($view_path, $view_route, $route);
   }
 
   /**