diff --git a/core/modules/views/src/Plugin/views/display/Page.php b/core/modules/views/src/Plugin/views/display/Page.php index 53fe353..732fc47 100644 --- a/core/modules/views/src/Plugin/views/display/Page.php +++ b/core/modules/views/src/Plugin/views/display/Page.php @@ -496,6 +496,11 @@ public function postSaveView(array $original_display) { $route_rebuild = FALSE; + $this->display += [ + 'menu' => [], + 'tab_options' => [], + ]; + if ($this->display['display_options']['menu'] != $original_display['display_options']['menu']) { $route_rebuild = TRUE; } diff --git a/core/modules/views/src/Plugin/views/display/PathPluginBase.php b/core/modules/views/src/Plugin/views/display/PathPluginBase.php index 6459e7c..f8a935b 100644 --- a/core/modules/views/src/Plugin/views/display/PathPluginBase.php +++ b/core/modules/views/src/Plugin/views/display/PathPluginBase.php @@ -520,6 +520,13 @@ public function postSaveView(array $original_display) { $route_rebuild = FALSE; + $this->display += [ + 'path' => '', + 'route_name' => '', + 'arguments' => [], + 'access' => [], + ]; + if ($this->display['display_options']['path'] != $original_display['display_options']['path']) { $route_rebuild = TRUE; }