My earlier fix didn't quite work if the protocol isn't the same between the base URI and the parameter URI.