From 960dc24674bc48f5aca502edcbbe74dc6f6ce30a Mon Sep 17 00:00:00 2001 From: Ahmad Samir Date: Thu, 10 Jun 2021 11:46:46 +0200 Subject: [PATCH] Fix signatures.html help:/ url From a glimpse at the khelpcenter code, I think it indexes all the html pages in a manual, then finds the requested page by searching for the filename (I am not 100% sure, though), for example either of these two urls work: help:/okular/index.html#adding_digital_signatures help:/okular/signatures.html#adding_digital_signatures but when falling back to opening the manual at docs.kde.org in a web browser that indexing isn't available, so we have to be a bit more precise with the urls, so use the second url. (cherry picked from commit df02881611d3c00f3ea93e0e317b4248d03f9a53) --- part/pageviewannotator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/part/pageviewannotator.cpp b/part/pageviewannotator.cpp index 575be6b29..37259a4b5 100644 --- a/part/pageviewannotator.cpp +++ b/part/pageviewannotator.cpp @@ -381,7 +381,7 @@ public: if (certs.isEmpty()) { KMessageBox::information(m_pageView, i18n("There are no available signing certificates.
For more information, please see the section about Adding Digital Signatures in the manual.", - QStringLiteral("help:/okular/index.html#adding_digital_signatures")), + QStringLiteral("help:/okular/signatures.html#adding_digital_signatures")), QString(), QString(), KMessageBox::Notify | KMessageBox::AllowLink);