Takes argument url returns reverse canonicalized URL, if found. Otherwise returns the passed URL.