Missing static asset + wrong path: /hero-bootstrap-bridge.css 404 on every page load #25
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_db#25
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Symptom
Browser console on every hero_db UI page:
Note the URL: it's at the router root, not under
/hero_db/ui/.... That's diagnostic on its own.Causes (two compound bugs)
1. Wrong link path (absolute root, not relative)
crates/hero_db_ui/templates/base.html:13andtemplates/login.html:13:The leading
/makes the browser ignore the page's<base href="/hero_db/ui/">and resolve to the router roothttp://[host]:9988/hero-bootstrap-bridge.css.hero_routerdoesn't host that path, so 404.Fix: drop the leading slash so the link respects
<base>:This would resolve to
/hero_db/ui/hero-bootstrap-bridge.css, served byhero_db_uifrom its embedded static dir.2. The file isn't in the static dir
Even after fixing the path, the file is missing from
crates/hero_db_ui/static/.hero_db_uiships onlystatic/js/connection-status.jsand template-derived assets — no CSS bridge file.Fix: copy
hero-bootstrap-bridge.cssintocrates/hero_db_ui/static/. Known-good source ishero_proxy/crates/hero_proxy_ui/static/hero-bootstrap-bridge.css(the same shared bridge other hero_* UIs reference).Both fixes needed together
Fixing only (1) just turns a root-404 into a per-app-404. Fixing only (2) doesn't help because the link's leading
/still bypasses the embedded location. Single PR with both edits.Family
Same asset-gap pattern just filed against
hero_browser(their issue: PR #69 had the same missing file). Worth tracking together if these UIs are meant to share a common bridge stylesheet.