Skip to content
Snippets Groups Projects

Issue #3342122 by mastap, smustgrave: /node/{id} not working for 404 exclusion

2 files
+ 91
0
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -107,6 +107,17 @@ class CacheexcludeSubscriber implements EventSubscriberInterface {
if ($path_matches || $alias_path_matches) {
return TRUE;
}
$system404 = $this->configFactory->get('system.site')->get('page.404');
if (isset($system404)) {
if (is_array($pages) && in_array($current_path, $pages)) {
return TRUE;
}
elseif ($system404 === $pages) {
return TRUE;
}
}
}
return FALSE;
Loading