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 <sunil@medhas.org>
Reviewed-by: Joseph Nuthalapati <njoseph@riseup.net>
This commit is contained in:
Sunil Mohan Adapa authored and Joseph Nuthalapati committed 2025-11-06 20:03:04 +05:30
1 parent d5062ef5ea
commit a74028a73f
1 file changed
+5
+5
View File
@@ -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)