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 2025-11-05 08:43:37 -08:00 committed by Joseph Nuthalapati
parent d5062ef5ea
commit a74028a73f
No known key found for this signature in database
GPG Key ID: 5398F00A2FA43C35

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)