fix for protocol-less urls ending in / not being matched