diff --git a/Controller/BackendController.php b/Controller/BackendController.php index 11fd4e0..9764b7b 100755 --- a/Controller/BackendController.php +++ b/Controller/BackendController.php @@ -132,6 +132,12 @@ final class BackendController extends Controller public function viewEditorView(RequestAbstract $request, ResponseAbstract $response, array $data = []) : RenderableInterface { $view = new View($this->app->l11nManager, $request, $response); + if (!$request->hasData('id')) { + $response->header->status = RequestStatusCode::R_404; + $view->setTemplate('/Web/Backend/Error/404'); + + return $view; + } /** @var \Modules\Editor\Models\EditorDoc $doc */ $doc = EditorDocMapper::get() diff --git a/Theme/Backend/Components/Compound/compound.tpl.php b/Theme/Backend/Components/Compound/compound.tpl.php index d8ed6aa..ecd1a64 100644 --- a/Theme/Backend/Components/Compound/compound.tpl.php +++ b/Theme/Backend/Components/Compound/compound.tpl.php @@ -1,6 +1,6 @@