fix(ui): inject <base href> to fix preload-scanner 404 on app.js #25
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_voice!25
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "development_fix_voice_base_href"
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
Server-side injects
<base href>derived fromX-Forwarded-Prefixbefore any<script>/<link>. The browser preload scanner runs before inline JS, so the existing JS-only base-path fallback was racing against./app.jsresolution and producing 404s when mounted under hero_router.Related Issue
Closes #26
Changes
<!-- BASE_HREF -->marker inindex.htmlrender_index_htmlfrom the same prefix used for the meta tagTest Results
Verified via curl through hero_router:
<base href="/hero_voice/ui/">is in HTML before any resource tag;/hero_voice/ui/app.jsreturns 200.