Remove 0.0.0.0 from VNC option
When you click on the vnc via web button after activating vnc option the listening interface is used. This by default is 0.0.0.0 which leads to a broken link like "http://0.0.0.0:5801/vnc_auto.html" which is invalid.
Most options of what to do here are going to have many corner cases because we can't use relative links.
I believe the simplest option if possible is detect if it 0.0.0.0 and instead use the hostname of the truenas but that only works if it is set(correctly) or mdns is functional.
There may be a simple fix here with django that I'm just not aware of though.