TLS termination doesn't update image links to HTTPS in HTML page

I have a http service and i am using istio ingress gateway for TLS termination. My service hosts a login page which has image links. istio updates the IP in image links but keeps the scheme as http. Browser now tries to download those images using http scheme on tls port. is there a way to configure istio to update scheme as well when TLS termination is used.
ex. -
link rel=“shortcut icon” href=“http://hostname:tlsport/opennms/favicon.ico” link rel=“apple-touch-icon” sizes=“180x180” href=“http://hostname:tlsport/opennms/apple-touch-icon.png” link rel=“icon” type=“image/png” sizes=“32x32” href=“http://hostname:tlsport/opennms/favicon-32x32.png” link rel=“icon” type=“image/png” sizes=“16x16” href=“http://hostname:tlsport/opennms/favicon-16x16.png