D22525: kioclient: Don't convert `:x:y` to `?line=x&column=y` for URLs starting with remote schemes.

Gleb Popov noreply at phabricator.kde.org
Fri Jul 19 16:02:50 BST 2019


arrowd added a comment.


  In D22525#497556 <https://phabricator.kde.org/D22525#497556>, @cfeck wrote:
  
  > Oh, if the latter syntax also works, then you are right.
  
  
  Not sure what you mean by "also works". Current code checks if the URL ends with `:x:y` and turns it into `?line=x&column=y`. This is used to open local text files at the given cursor position. However, for URL's like `http://localhost:3000` it is invalid to perform such transformation. My patch checks URL scheme and applies the transformation only if it is `file://`.

REPOSITORY
  R126 KDE CLI Utilities

REVISION DETAIL
  https://phabricator.kde.org/D22525

To: arrowd
Cc: cfeck, plasma-devel, #frameworks, LeGast00n, jraleigh, fbampaloukas, GB_2, ragreen, Pitel, ZrenBot, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20190719/d9616cf7/attachment.html>


More information about the Plasma-devel mailing list