Use secure url if available.