SUMMARY When using `kde-open`/`xdg-open` under Plasma 5.16, giving it a url such as `http://localhost:3000` will cause it to open `http://localhost/?line=3000&column=0` in the web browser. STEPS TO REPRODUCE 1. Run `xdg-open http://localhost:3000` 2. Check the URL that was opened in the browser OBSERVED RESULT The URL `http://localhost/?line=3000&column=0` (port number translated to line number incorrectly) is opened in the web browser. EXPECTED RESULT The given URL (`http://localhost:3000`) should be opened in the web browser. SOFTWARE/OS VERSIONS Linux/KDE Plasma: Arch Linux KDE Plasma Version: 5.16.0 KDE Frameworks Version: 5.59.0 Qt Version: 5.12.3 ADDITIONAL INFORMATION
kde-open5 works as expected for me, I cannot reproduce what's reported here. I'm testing kde-cli-tools-5.15.5, so possible this may be a 5.16 regression
Yes, caused by the commit from bug 398998.
Can confirm it used to work as expected in 5.15, only encountered this issue after an upgrade to 5.16. Looking at the referenced bug, perhaps this behavior should be limited to the `file` protocol - I'm assuming it was unintentional to have this apply to HTTP/FTP/etc.
So why is nothing happening there? This BUG is really annoying and breaks other applications that want/need to open web links in a browser.
It turned out, that `xdg-open http://localhost:3000/` works, while `xdg-open http://localhost:3000` doesn't. I've created a Phab diff fixing the issue: http://phabricator.kde.org/D22525
Git commit 6d86fd453417464509860b7be8c3cbf0e4a8d27b by Gleb Popov. Committed on 20/07/2019 at 15:19. Pushed by arrowdodger into branch 'master'. kioclient: Don't convert `:x:y` to `?line=x&column=y` for URLs starting with remote schemes. Test Plan: `kioclient5 exec http://localhost:9000` now works correctly. Subscribers: plasma-devel, #frameworks Differential Revision: https://phabricator.kde.org/D22525 M +9 -0 kioclient/urlinfo.h https://commits.kde.org/kde-cli-tools/6d86fd453417464509860b7be8c3cbf0e4a8d27b
Git commit 42ef318a9d1c454f96b60181d8231a59233720ea by David Faure, on behalf of Gleb Popov. Committed on 20/07/2019 at 20:27. Pushed by dfaure into branch 'Plasma/5.16'. kioclient: Don't convert `:x:y` to `?line=x&column=y` for URLs starting with remote schemes. Test Plan: `kioclient5 exec http://localhost:9000` now works correctly. Subscribers: plasma-devel, #frameworks Differential Revision: https://phabricator.kde.org/D22525 M +9 -0 kioclient/urlinfo.h https://commits.kde.org/kde-cli-tools/42ef318a9d1c454f96b60181d8231a59233720ea