made resolve_url case-insensitive