diff --git a/lib/Controller/PageController.php b/lib/Controller/PageController.php index 9eadaddeb2..985db98846 100644 --- a/lib/Controller/PageController.php +++ b/lib/Controller/PageController.php @@ -128,14 +128,16 @@ public function indexF(): TemplateResponse { #[NoCSRFRequired] public function incomplete(): TemplateResponse { Util::addScript(Application::APP_ID, 'libresign-main'); - $response = new TemplateResponse(Application::APP_ID, 'main', [], TemplateResponse::RENDER_AS_BASE); + $response = new TemplateResponse(Application::APP_ID, 'main'); return $response; } #[PublicPage] #[NoCSRFRequired] public function incompleteP(): TemplateResponse { - return $this->incomplete(); + Util::addScript(Application::APP_ID, 'libresign-main'); + $response = new TemplateResponse(Application::APP_ID, 'main', [], TemplateResponse::RENDER_AS_BASE); + return $response; } #[NoAdminRequired]