[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-frameworks-devel
Subject: kio and scheme://
From: Àlex Fiestas <afiestas () kde ! org>
Date: 2014-11-02 12:43:50
Message-ID: 6838381.MJrpzV0kr7 () minibad
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
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!
["signature.asc" (application/pgp-signature)]
_______________________________________________
Kde-frameworks-devel mailing list
Kde-frameworks-devel@kde.org
https://mail.kde.org/mailman/listinfo/kde-frameworks-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic