Added implementation for resolveUrl (former absoluteUrl).