Sometimes the Recent Folders tab on the Start Page would
show directory entries with multiple / at the end. Clicking on those
folders works fine, but as the same folder could also be added without
two slashes, in some cases there were multiple entries for the same
location.
The duplicate slash is caused by a porting mistake in d760ced7cb5b,
which added / unconditionally while KUrl::AddTrailingSlash only
added / if there was none at the end. Performing this check manually
fixes the bug.
Note that the fix for Bug #312060 (differentiate between home and root
folder for remote hosts) and what was added in 7eb5472f6539 (no password
dialog right after startup) are still in effect as well, even after
porting away from KUrl.
As a side effect, visiting / does not result anymore in broken
Recent Folder entries (non-functional and showing an error icon).
KIO warnings are gone, too:
kf5.kio.core: Invalid URL: QUrl("")
CCBUG: 383850