using current location.protocol
Merge branch 'hotfix/fix-gallery-https'