diff --git a/CHANGELOG.md b/CHANGELOG.md index 803cdb60edd..3dfc30ca472 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ - Bugfix: Fixed a crash that could occur on Wayland when using the image uploader. (#5314) - Bugfix: Fixed split tooltip getting stuck in some cases. (#5309) - Bugfix: Fixed the version string not showing up as expected in Finder on macOS. (#5311) +- Bugfix: Fixed links having `http://` added to the beginning in certain cases. (#5323) ## 2.5.0-beta.1 diff --git a/src/messages/MessageBuilder.cpp b/src/messages/MessageBuilder.cpp index cc71558f65e..45b8cafda9c 100644 --- a/src/messages/MessageBuilder.cpp +++ b/src/messages/MessageBuilder.cpp @@ -635,7 +635,7 @@ void MessageBuilder::addLink(const ParsedLink &parsedLink) auto textColor = MessageColor(MessageColor::Link); auto *el = this->emplace( LinkElement::Parsed{.lowercase = lowercaseLinkString, - .original = matchedLink}, + .original = origLink}, MessageElementFlag::Text, textColor); el->setLink({Link::Url, matchedLink}); getIApp()->getLinkResolver()->resolve(el->linkInfo());