mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
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:
parent
d5062ef5ea
commit
a74028a73f
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user