Account for repl urls with paths [fixes #1344, again]