fix http path url handling