diff --git a/src/ui/LinkedText.cpp b/src/ui/LinkedText.cpp
index ecb2f156..ec9ae68f 100644
--- a/src/ui/LinkedText.cpp
+++ b/src/ui/LinkedText.cpp
@@ -64,7 +64,7 @@ QString LinkedText::parsed(const QString &input)
if (start > p)
re.append(input.mid(p, start - p).toHtmlEscaped().replace(QLatin1Char('\n'), QStringLiteral("
")));
- re.append(QStringLiteral("%2").arg(QString::fromLatin1(url.toEncoded()).toHtmlEscaped()).arg(match.capturedRef().toString().toHtmlEscaped()));
+ re.append(QStringLiteral("%2").arg(QString::fromLatin1(url.toEncoded()).toHtmlEscaped(), match.capturedRef().toString().toHtmlEscaped()));
p = match.capturedEnd();
}