mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-05-09 08:25:54 +02:00
[GH-ISSUE #654] [Feature]: change from absolut urls for resources to relative #426
Labels
No labels
A1
automated
automated
bug
bug
Closed due to inactivity
contrib
dependencies
dependencies
duplicate
enhancement
feedback
hold
invalid
Notes
P1S
pull-request
security
ThumbsUp
user-report
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/bambuddy-maziggy-1#426
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Originally created by @TravisWilder on GitHub (Mar 8, 2026).
Original GitHub issue: https://github.com/maziggy/bambuddy/issues/654
Originally assigned to: @maziggy on GitHub.
Problem or Use Case
Change absolute root-referenced URLs in HTML/JS etc. to relative paths so the app works when not hosted at root
The webpage loads all resources (js/images) with full / absolute rules like
<script type="module" crossorigin src="/assets/index-DULiB1U_.js"></script>Proposed Solution
change to relative urls will allow to embed bambuddy in other portals like HA ingress
this would need to add a "." in front of the urls
<script type="module" crossorigin src="/assets/index-DULiB1U_.js"></script>will be like
<script type="module" crossorigin src="./assets/index-DULiB1U_.js"></script>it should not have any impact on running it as default on /
Alternatives Considered
No response
Feature Category
Other
Priority
Would improve my workflow
Mockups or Examples
No response
Contribution
Checklist
@maziggy commented on GitHub (Mar 10, 2026):
This is a straightforward change — just adding base: './' to the Vite config so all asset paths become relative instead of root-absolute.
That said, making Bambuddy work behind a reverse proxy sub-path (like HA Ingress) also requires the API calls and WebSocket connections to use relative paths, which may need additional changes beyond just the static assets.