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!

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Kde-frameworks-devel mailing list
Kde-frameworks-devel@kde.org
https://mail.kde.org/mailman/listinfo/kde-frameworks-devel

Reply via email to