diff --git a/src/util/UrlUtils.cpp b/src/util/UrlUtils.cpp index bbf5ac15..a2156552 100644 --- a/src/util/UrlUtils.cpp +++ b/src/util/UrlUtils.cpp @@ -25,6 +25,10 @@ std::string extractHost(const std::string& url) { } std::string buildUrl(const std::string& serverUrl, const std::string& path) { + // If path is already an absolute URL (has protocol), use it directly + if (path.find("://") != std::string::npos) { + return path; + } const std::string urlWithProtocol = ensureProtocol(serverUrl); if (path.empty()) { return urlWithProtocol;