[pim/mimetreeparser] src/core: Do not remove any part in displayed Url

Thomas Friedrichsmeier <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 0a8feb2c7659721f6180ad18ce62b38a042d3931 by Thomas Friedrichsmeier.
Committed on 16/08/2026 at 16:36.
Pushed by tfry into branch 'master'.

Do not remove any part in displayed Url

M  +1    -1    src/core/htmlutils.cpp

https://invent.kde.org/pim/mimetreeparser/-/commit/0a8feb2c7659721f6180ad18ce62b38a042d3931

diff --git a/src/core/htmlutils.cpp b/src/core/htmlutils.cpp
index 4f4a772..9652777 100644
--- a/src/core/htmlutils.cpp
+++ b/src/core/htmlutils.cpp
@@ -216,7 +216,7 @@ QString MimeTreeParser::Core::linkify(const QString &in)
             href = href.toHtmlEscaped();
             href = linkify_htmlsafe(href);
             // printf("link: [%s], href=[%s]\n", link.latin1(), href.latin1());
-            linked = u"<a href=\"%1\">"_s.arg(href) + QUrl{link}.toDisplayString(QUrl::RemoveQuery) + u"</a>"_s + pre.mid(cutoff).toHtmlEscaped();
+            linked = u"<a href=\"%1\">"_s.arg(href) + QUrl{link}.toDisplayString() + u"</a>"_s + pre.mid(cutoff).toHtmlEscaped();
             out.replace(x1, len, linked);
             n = x1 + linked.length() - 1;
         } else if (isAtStyle) {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.