Fix resolve_url for absolute urls.