kio and scheme://

Àlex Fiestas afiestas at kde.org
Tue Feb 17 22:32:02 UTC 2015


Review request to fix this!
https://git.reviewboard.kde.org/r/122613/

Thanks for the support guys!

On Sun, Nov 2, 2014 at 1:43 PM, Àlex Fiestas <afiestas at kde.org> wrote:

> Hi there
>
> There are quite a few places where the following code is found:
>
> if (!url.path().endsWith('/')) {
>     url.setPath(url.path() + '/');
> }
>
> Given an url like: 'scheme://' KUrl will return '/' as path while QUrl
> returns
> empty string.
>
> This is making kio add a third slash to the url in many places (because of
> code like the one pasted before).
>
> As a result if you open dolphin and type smb://, it will be redirected to
> smb:///.
>
> Is this an intended behavior or should I start sending patches to prevent
> this
> from happening?
>
> Also, even though technically the path of 'smb://' is empty, users are
> used to
> that format (specially given how popular htp:// is) so I would like to keep
> supporting it.
>
> Cheers!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20150217/ccdb801e/attachment.html>


More information about the Kde-frameworks-devel mailing list