diff --git a/core/modules/views/src/Plugin/views/display/PathPluginBase.php b/core/modules/views/src/Plugin/views/display/PathPluginBase.php index 4fc77400cf..6650e2aab5 100644 --- a/core/modules/views/src/Plugin/views/display/PathPluginBase.php +++ b/core/modules/views/src/Plugin/views/display/PathPluginBase.php @@ -203,7 +203,7 @@ protected function getRoute($view_id, $display_id) { // Collect arguments which have validation and have a fail behavior of // "page not found" or "access denied". foreach ($this->getOption('arguments') as $argument) { - if ($argument['specify_validation'] + if (!empty($argument['specify_validation']) && !empty($argument['validate']) && in_array($argument['validate']['fail'], ['not found', 'access denied']) ) { $validate_arguments[] = [ 'plugin_id' => $argument['validate']['type'],