Files
home-docker/home-apps
Junv (via Hermes) 8aabf71f79 fix: add fallback for root-level static files in site-content handler
When an HTML page references static files (images, CSS, JS) via
relative URLs, the browser resolves them as root-level paths
(e.g. /image.jpg from page /site-name). Without a trailing slash
on the page URL, these resolve to /image.jpg instead of
/site-name/image.jpg.

The API's /site-content/{path} handler interprets the first path
segment as the site name, so /dule_yuan_15k.jpg was treated as a
site name lookup rather than a file within the dule-yuan site.

Added _find_static_file() fallback: when no site matches the first
path segment, search all site directories for a matching filename.
Only triggered for common static file extensions to avoid
ambiguous lookups.
2026-07-13 11:19:50 +10:00
..
2026-01-12 10:10:10 +11:00
2026-01-12 12:29:48 +11:00
2026-02-19 15:20:25 +11:00
2026-01-12 10:26:13 +11:00
2026-04-14 11:50:27 +10:00
2026-02-23 19:14:15 +11:00
2026-02-01 07:31:17 +11:00
2026-07-04 11:38:13 +10:00