Fixed read button functionality in case of standalone running books #100
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_books!100
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "development_read_fix_in_standalone"
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?
This PR represents a solution for the following problem:
Problem:
The "Read" button on book pages called /hero_agent/ui/api/voice/tts — a hardcoded absolute path that only worked when hero_books was accessed through hero_router (which knows how to route to hero_agent).
When running hero_books standalone, the endpoint didn't exist.
Solution:
- Behind hero_router: {{ base }} is /hero_books/ui, so it derives /hero_agent/ui/api/voice/tts (direct to hero_agent via router)
- Standalone: {{ base }} is empty, so it falls back to /api/voice/tts (local proxy)
Result: TTS works in both modes — via hero_router and standalone — using hero_agent's TTS endpoint in both cases.
Related Issues: