relative embed path should support https as well as http