fix protocol-relative URLs. closes #30