diff --git a/src/filewidgets/kurlnavigator.cpp b/src/filewidgets/kurlnavigator.cpp --- a/src/filewidgets/kurlnavigator.cpp +++ b/src/filewidgets/kurlnavigator.cpp @@ -346,7 +346,13 @@ QUrl url; url.setScheme(protocol); - url.setPath((protocol == QLatin1String("file")) ? QStringLiteral("/") : QStringLiteral("//")); + if (protocol == QLatin1String("file")) { + url.setPath(QStringLiteral("/")); + } else { + // With no authority set we'll get e.g. "ftp:" instead of "ftp://". + // We want the latter, so let's set an empty authority. + url.setAuthority(QStringLiteral("")); + } m_pathBox->setEditUrl(url); }