diff --git a/src/filewidgets/kdiroperator.cpp b/src/filewidgets/kdiroperator.cpp --- a/src/filewidgets/kdiroperator.cpp +++ b/src/filewidgets/kdiroperator.cpp @@ -1235,7 +1235,8 @@ void KDirOperator::cdUp() { - QUrl tmp(d->currUrl); + // Allow /d/c// to go up to /d/ instead of /d/c/ + QUrl tmp(d->currUrl.adjusted(QUrl::NormalizePathSegments)); setUrl(tmp.resolved(QUrl(QStringLiteral(".."))), true); }