From a74028a73f06e6a5c916db07aab4694f1c4b7055 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Wed, 5 Nov 2025 08:43:37 -0800 Subject: [PATCH] help: Fix serving images from help pages Tests: - Images are shown in the pages /plinth/help/manual/en/bepasty and /plinth/help/manual/en/. Before the patch, images are not shown and 404 errors are raised. Signed-off-by: Sunil Mohan Adapa Reviewed-by: Joseph Nuthalapati --- plinth/modules/help/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plinth/modules/help/__init__.py b/plinth/modules/help/__init__.py index f57924a5b..97ae90513 100644 --- a/plinth/modules/help/__init__.py +++ b/plinth/modules/help/__init__.py @@ -73,6 +73,11 @@ class HelpApp(app_module.App): directory_map) self.add(static_files) + # Mounting has to be done manually because web server will been + # initialized before post_init() runs. Web server initialization is + # when all existing StaticFiles components are auto-mounted. + static_files.mount() + def setup(self, old_version): """Install and configure the app.""" super().setup(old_version)