1
0
Fork 0
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

Closed
opened 2026-05-07 00:09:56 +02:00 by BreizhHardware · 1 comment

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

  • I would be willing to help implement this feature

Checklist

  • I have searched existing issues to ensure this feature hasn't already been requested
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 - [ ] I would be willing to help implement this feature ### Checklist - [x] I have searched existing issues to ensure this feature hasn't already been requested
BreizhHardware 2026-05-07 00:09:56 +02:00
  • closed this issue
  • added the
    wontfix
    label
Author
Owner

@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.

<!-- gh-comment-id:4029053846 --> @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.
Sign in to join this conversation.
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
starred/bambuddy-maziggy-1#426
No description provided.