headscale-ui icon indicating copy to clipboard operation
headscale-ui copied to clipboard

Trim tailing slash in `Headscale URL` field

Open korfuri opened this issue 3 years ago • 1 comments

Minor issue: if Headscale URL is filled to include a trailing /, this causes the requests to Headscale to be of the form https://server//api/... which returns 404s.

Options:

  • Assuming that headscale-ui is indeed served from /web/ and heascale's API is at /, this could be auto-configured;
  • The UI should hint that trailing /s are probably unnecessary, or
  • The trailing / should be trimmed automatically

Thanks!

korfuri avatar Aug 16 '22 10:08 korfuri

I'm not actually getting this issue. I can configure the app to remove the trailing slash regardless (probably not a terrible idea), but I can't recreate the problem either.

routerino avatar Aug 16 '22 23:08 routerino