I'm glad I can connect to my hub via its mDNS name (hubitat.local), but when I do, it immediately sends a redirect to its current IP address. That means whenever I bookmark anything, I have to go in and edit the bookmark to use "hubitat.local" again.
I don't understand what that redirect gets us -- I think I'd prefer the hub just ignored the Host header entirely and let users use whatever hostname happened to reach it, whether mDNS or regular DNS. That's why we have DNS, after all!
$ curl -I http://hubitat.local/
HTTP/1.1 302 Found
Date: Mon, 30 Dec 2024 22:26:46 GMT
Location: http://10.55.10.137:80/
Content-Length: 0
$ curl -I http://hubitat.local/ -H 'Host: 10.55.10.137'
HTTP/1.1 200 OK
The curl commands are demonstrating the behavior I don't like, which checks the Host header: if you access the hub from a URL that contains a hostname, not the IP address, it redirects to the IP address. (The Host: header in the first example would be "Host: hubitat.local".)
I want to never see an IP address in the browser. I don't know why the hubitat insists on redirecting.