Changing HTTP to HTTPS is done by refreshing the page.
It does not need to be a special case (https://github.com/syncthing/syncthing/issues/702)
However, the any polling request fails with status 302 (not found). If we find this we should reload the page.