Fixed uri->url to url-encode.
Fixed anonymous user visiting
Fixed uri precedence sorting