fix(browser_ui): /rpc shortcut, base href, group by _ #12
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_browser!12
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "development_apidocs_fix"
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?
Fixes #11.
Three template-only fixes in
hero_browser_ui:{{ base_path }}/openrpc.json(which lands onui.sock, no such route, 404 with empty body) to{{ base_path }}/rpc/openrpc.json, using hero_router's/<svc>/ui/rpc[/...]sibling shortcut.<base href="{{ base_path }}/">in<head>— fixes the connection-statusfetch("health")andfetch("rpc")calls that broke after hero_router 308-redirects/<svc>/ui/→/<svc>/ui(no trailing slash) and the document URL drops the last segment for relative-URL resolution. The page was issuingGET /hero_browser/healthinstead of/hero_browser/ui/health..or_instead of only.. Methods without a dot (most of hero_browser:browser_*,page_*,element_*, …) no longer all bucket into one literal group called_server; they group asbrowser,page,element,js,viewport,network,console,cookies,dialog,accessibility,key,file,rpc.No Rust changes, no new dependencies. Verified via curl through hero_router and by re-rendering the page from the running service after
hero_proc service restart. Details and verification matrix in #11 (comment).