fix(router): accept trailing slash on iframe service paths #80
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_router!80
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "development_fix_router_trailing_slash"
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
Iframe-served services were 404ing on cold loads because hero_router redirected
/<svc>/<webname>/to/<svc>/<webname>(no trailing slash). Browsers then resolved<script src="./app.js">against the slashless URL — landing on/<svc>/app.jsinstead of/<svc>/<webname>/app.js— and got 404.Related Issue
Closes #79
Changes
b4d1aa3)./:service_name/:webname/as an alias of/:service_name/:webname.Test Results
cargo check + cargo fmt + cargo test all pass. Smoke: /hero_voice/ui/ now returns 200, /hero_voice/ui/app.js loads.
e3135bf9cc5539f5fbed