change the protocol of the href attribute