Added poorly-named 'url' function for resolving redirects.