Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit d90b712b authored by Pavel Mars's avatar Pavel Mars Committed by Luigi Toscano

Fix opening URL's to help files

Summary:
Signed-off-by: default avatarPavel Mars <mars@basealt.ru>

When you select the menu item "KInfoCenter Modules" -> "DMA-Channels" (or another item: Memory, OpenGL, etc.) -> "KInfoCenter" -> "Start KInfoCenter", the help on the right side of the program screen is incorrect.

When you select any of the submenus that appear, the same help is displayed (../index.html).
This is due to the incorrect formation of links to help.
To fix this bug, add "QUrl :: RemoveFragment" to the string "mToc-> setApplication (url.toString (QUrl :: RemoveScheme | QUrl :: RemoveFilename | QUrl :: StripTrailingSlash))" in the navigatorappitem.cpp file.
This expression removes the fragment from the generated link and allows you to properly load the help file.

Reviewers: yurchor, ltoscano

Reviewed By: yurchor, ltoscano

Subscribers: i.Dark_Templar, kde-doc-english

Tags: #documentation

Differential Revision: https://phabricator.kde.org/D16057
parent 471c2601
......@@ -106,7 +106,7 @@ void NavigatorAppItem::scheduleTOCBuild()
mToc = new TOC( this );
qCDebug(KHC_LOG) << "Trying to build TOC for" << entry()->name();
mToc->setApplication( url.toString( QUrl::RemoveScheme | QUrl::RemoveFilename | QUrl::StripTrailingSlash ) );
mToc->setApplication( url.toString( QUrl::RemoveScheme | QUrl::RemoveFilename | QUrl::StripTrailingSlash | QUrl::RemoveFragment) );
QString doc = View::langLookup( url.path() );
// Enforce the original .docbook version, in case langLookup returns a
// cached version
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment