fix(ui): correct TTS endpoint URL and HTML structure in page template #93

Merged
mahmoud merged 2 commits from development_fix_tts_endpoint_and_html into development 2026-04-20 10:25:17 +00:00
Member

Summary

  • Fixed the Read Aloud (TTS) fetch URL from BASE_PATH + '/../hero_agent/api/voice/tts' to absolute /hero_agent/ui/api/voice/tts so it works when embedded behind a proxy
  • Fixed misplaced </div> closing tag that was outside {% endblock %}, breaking HTML nesting
  • Cleaned up spurious blank line and ensured trailing newline

Closes lhumina_code/hero_os#77

Changes

  • crates/hero_books_ui/templates/page.html: Fixed TTS endpoint URL, corrected HTML structure, minor cleanup

Test Results

  • cargo test --release -p hero_books_ui -- passed
## Summary - Fixed the Read Aloud (TTS) fetch URL from `BASE_PATH + '/../hero_agent/api/voice/tts'` to absolute `/hero_agent/ui/api/voice/tts` so it works when embedded behind a proxy - Fixed misplaced `</div>` closing tag that was outside `{% endblock %}`, breaking HTML nesting - Cleaned up spurious blank line and ensured trailing newline ## Related Issue Closes https://forge.ourworld.tf/lhumina_code/hero_os/issues/77 ## Changes - `crates/hero_books_ui/templates/page.html`: Fixed TTS endpoint URL, corrected HTML structure, minor cleanup ## Test Results - `cargo test --release -p hero_books_ui` -- passed
fix(ui): correct TTS endpoint URL and HTML structure in page template
Some checks failed
Test / test (pull_request) Failing after 5s
Test / integration (pull_request) Has been skipped
f62639e531
lhumina_code/hero_os#77
fix(ci): clear corrupted apt packages
All checks were successful
Test / test (pull_request) Successful in 7m38s
Test / integration (pull_request) Successful in 4m5s
f503ec3357
mahmoud merged commit 2b053a4ea8 into development 2026-04-20 10:25:17 +00:00
mahmoud deleted branch development_fix_tts_endpoint_and_html 2026-04-20 10:25:21 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lhumina_code/hero_books!93
No description provided.