fix(ui): honor X-Forwarded-Prefix in redirects and embed hero-bootstrap-bridge.css #18
No reviewers
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_biz!18
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "development_fix_iframe_mount_bugs"
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?
Summary
Two iframe-mount bugs: (1) absolute redirects bypassed the iframe mount path because
state.base_pathwas read once at startup from a possibly-unset env var; (2)hero-bootstrap-bridge.cssreferenced at root was never served.Related Issue
Closes #19
Closes #20
Changes
prefix_middlewarecapturingX-Forwarded-Prefixinto a tokio task-localeffective_base_path(state)helper preferring the per-request prefixstate.base_pathusages in handlers with the helperhero-bootstrap-bridge.cssand added a dedicated route withCache-Control: immutableTest Results
Verified via curl through hero_router: redirects under
/hero_biz/ui/c/threefoldresolve correctly; CSS endpoint returns 200 with cache headers.