Fixed base URL generation for HTTPS