diff --git a/StaticPagesPlugin.php b/StaticPagesPlugin.php index ac7fde6..4064167 100644 --- a/StaticPagesPlugin.php +++ b/StaticPagesPlugin.php @@ -149,7 +149,7 @@ public function callbackHandleContent($hookName, $args) // Look for a static page with the given path $context = $request->getContext(); $staticPage = $staticPagesDao->getByPath( - $context?->getId() ?? Application::CONTEXT_ID_NONE, + $context?->getId() ?? Application::SITE_CONTEXT_ID, $path ); }