This reverts commit 3c5aa3d575. isTLS is now set correctly so use it in html templates for assets and media
3c5aa3d575