Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to route relative to the current URL / browser location API #746

Open
daniel-simpson opened this issue Feb 15, 2024 · 0 comments

Comments

@daniel-simpson
Copy link

Is your feature request related to a problem? Please describe.
I serve homer dashboard on my home server. I usually open it by IP address (e.g. 192.168.1.119), but if I'm outside my network I use tailscale and it's resolution to grab my dashboard (e.g. http://nuc/).

I host multiple other services on this machine on different ports, and would like a way to have homer resolve links relative to my current URL (either http://192.168.1.119 or http://nuc).

Describe the solution you'd like
A concise template for generic services that allows some or all of the url property to be parameterised, e.g.:

- name: "Relative URL example"
  icon: fa-explosion
  subtitle: A link hosted on the same server as Homer, but with more than one possible hostname
  url: "//${hostname}:8080

Describe alternatives you've considered
PR incoming, happy to make adjustments or discuss further.

Additional context
N/A

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant