added trap in resolveUrl for absolute baseUrl