Add function for URL resolution