Summary: | Something does not handle anchors coherently with KConfigWidgets framework | ||
---|---|---|---|
Product: | [Frameworks and Libraries] frameworks-kconfigwidgets | Reporter: | Sérgio Augusto de Oliveira Valente <sergioaovalente> |
Component: | general | Assignee: | kdelibs bugs <kdelibs-bugs-null> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | a.samirh78, kdelibs-bugs-null, wbauer1, yurchor |
Priority: | NOR | ||
Version First Reported In: | 5.69.0 | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | URL opened at Mozilla Firefox Browser |
Description
Sérgio Augusto de Oliveira Valente
2020-04-07 07:58:17 UTC
Can you provide step-by-step instructions on how to trigger the bug? Does it happen for Brazilian Portuguese locale only? Thanks in advance for your answers. (In reply to Yuri Chornoivan from comment #1) > Can you provide step-by-step instructions on how to trigger the bug? > > Does it happen for Brazilian Portuguese locale only? > > Thanks in advance for your answers. Hello. I've put the steps on OP. See above. Didn't try another language. Sorry. Regretfully, 1. There is no "Structure Configuration Window" in Okular (at least in its English version). 2. There are no buttons in Okular windows that open online help. 3. The screenshot attached can be reproduced with any inexistent URL. Hence, this bug cannot be triaged without clear steps to reproduce or at least a screenshot of Okular window. Thanks. (In reply to Yuri Chornoivan from comment #3) > Regretfully, > > 1. There is no "Structure Configuration Window" in Okular (at least in its > English version). I suppose this is actually about okteta... I can confirm that the "Help" button in okteta's structure configuration dialog tries to open a non-existing URL (if khelpcenter is not installed): https://docs.kde.org/stable5/en/extragear-utils/okteta//okteta/index.html It should probably be https://docs.kde.org/stable5/en/extragear-utils/okteta/index.html instead. The same happens in okular though, open the settings and there will be a Help button. If you don't have khelpcenter installed, it will try to open this URL in a web browser, which fails: https://docs.kde.org/stable5/en/kdegraphics/okular//okular/index.html In this case, the correct URL would apparently be https://docs.kde.org/stable5/en/kdegraphics/okular/index.html I.e. it seems to be a general problem (in KDE Frameworks), apparently the application name gets duplicated in the URL. (In reply to Wolfgang Bauer from comment #4) > (In reply to Yuri Chornoivan from comment #3) > > Regretfully, > > > > 1. There is no "Structure Configuration Window" in Okular (at least in its > > English version). > I suppose this is actually about okteta... > > I can confirm that the "Help" button in okteta's structure configuration > dialog tries to open a non-existing URL (if khelpcenter is not installed): > https://docs.kde.org/stable5/en/extragear-utils/okteta//okteta/index.html > > It should probably be > https://docs.kde.org/stable5/en/extragear-utils/okteta/index.html instead. > > The same happens in okular though, open the settings and there will be a > Help button. > If you don't have khelpcenter installed, it will try to open this URL in a > web browser, which fails: > https://docs.kde.org/stable5/en/kdegraphics/okular//okular/index.html > > In this case, the correct URL would apparently be > https://docs.kde.org/stable5/en/kdegraphics/okular/index.html > > I.e. it seems to be a general problem (in KDE Frameworks), apparently the > application name gets duplicated in the URL. Ok then. It should be a recent addition (do not remember, but there was a review request some time ago). The anchor argument of the setHelp is processed mistakenly, not coherent with khelpclient.cpp: https://api.kde.org/frameworks/kconfigwidgets/html/khelpclient_8cpp_source.html Reformulate. Oops... Final fix. Seems I was wrong. KGuiAddons work as expected. Do not know what it is then. The Help menu entry in okteta now opens: https://docs.kde.org/stable5/en/okteta/okteta// @Luigi, maybe this was fixed server-side? I don't see the /kdegraphics/ or /extragear-utils/ as part of the urls any more. (In reply to Ahmad Samir from comment #9) > The Help menu entry in okteta now opens: > https://docs.kde.org/stable5/en/okteta/okteta// But that's still wrong, isn't it? (even if it seems to work) And the Help button in the "Structures" settings now tries to open https://docs.kde.org/stable5/en/okteta/okteta//okteta/index.html which still gives a 404 Not Found. The same happens with other applications I tried, the Help menu entry opens https://docs.kde.org/stable5/en/appname/appname// (which works), and a Help button in the settings tries https://docs.kde.org/stable5/en/appname/appname//appname/index.html (which doesn't work). Tested with the latest KDE Frameworks 5.83.0. (In reply to Wolfgang Bauer from comment #10) > (In reply to Ahmad Samir from comment #9) > > The Help menu entry in okteta now opens: > > https://docs.kde.org/stable5/en/okteta/okteta// > But that's still wrong, isn't it? (even if it seems to work) Ah ok, actually that does seem to be the correct URL (it looked strange to me). But as mentioned, the Help buttons in Settings dialogs (as originally reported here) are still broken. Both issues (the double '//' and the index.html urls) should be fixed by https://invent.kde.org/frameworks/kguiaddons/-/merge_requests/18 (5.84). (In reply to Ahmad Samir from comment #12) > Both issues (the double '//' and the index.html urls) should be fixed by > https://invent.kde.org/frameworks/kguiaddons/-/merge_requests/18 (5.84). Indeed, it seems to work fine with latest git master, both the Help menu entry and the Help buttons in the Settings dialog open https://docs.kde.org/stable5/en/okteta/okteta/index.html (or https://docs.kde.org/stable5/en/okular/okular/index.html in Okular) now. I think this bug report can be closed then (or marked as duplicate). *** This bug has been marked as a duplicate of bug 424961 *** |