Bug 408287

Summary: The redirect for applications which have no stable (doc) branch should not let user think it is an error
Product: [Websites] docs.kde.org Reporter: Kishore Gopalakrishnan <kishore96>
Component: docs.kde.orgAssignee: Documentation Editorial Team <kde-doc-english>
Status: REPORTED ---    
Severity: minor CC: foss, luigi.toscano
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Kishore Gopalakrishnan 2019-06-04 12:51:15 UTC
SUMMARY
Kile help points to the URL 'https://docs.kde.org/index.php?branch=stable5&language=en_GB&application=kile&path=/', on opening which we get the error 'The branch stable5 is not available for the specified application/language', along with a link to actual location of the documentation. Instead, it should point to 'https://docs.kde.org/index.php?branch=trunk5&language=en_GB&application=kile&path=/' (branch 'stable5' is changed to 'trunk5').

STEPS TO REPRODUCE
1. Open Kile
2. Press F1

OBSERVED RESULT
A page is opened which says that documentation doesn't exist, but contains a link to the right URL.

EXPECTED RESULT
It should open the correct documentation link.

SOFTWARE/OS VERSIONS
Linux distro: Arch Linux
KDE Plasma Version: 5.15.90
KDE Frameworks Version: 5.58.0
Qt Version: 5.13.0
Comment 1 foss 2023-12-09 16:20:12 UTC
Pressing F1 does open a local help file, no online resource. Thus, I cannot reproduce the problem.
I tracked down the outdated URL and updated it, see https://invent.kde.org/office/kile/-/merge_requests/55

Can you please
1) Check with current master (or will be Beta 4), if your problem still exist?
2) Describe again the steps you are doing?
Comment 2 Kishore Gopalakrishnan 2023-12-10 09:31:06 UTC
It looks like the online thing is only opened when the user does not have khelpcenter installed. I can still reproduce the bug on current master (I used the kile-git package from the Arch AUR).

Updated steps:
1. Make sure khelpcenter is not installed
2. Open Kile
3. Press F1

It still opens the same nonexistent URL with the wrong branch: https://docs.kde.org/index.php?branch=stable5&language=ta_IN&application=kile&path=index.html
Comment 3 Luigi Toscano 2023-12-17 11:02:57 UTC
https://invent.kde.org/office/kile/-/merge_requests/55 was not the right fix, I've reverted it.
Comment 4 Luigi Toscano 2023-12-17 11:14:59 UTC
Also, this is not an error of the application: it's about fixing the message of the website. But the behavior is correct, it just doesn't transparently redirect to the available doc but it gives you an additional link to click. This is a limitation of the website.