Fix passing the URL with id2url, when provided with an URL

It was passing the match result instead.