* go backwards through the segments, URL-decode them
* and look for a URL in the decoded result.
* Stop the search after the first match.
* go backwards through the segments, URL-decode them
* and look for a URL in the decoded result.
* Stop the search after the first match.