diff --git a/src/filewidgets/kdiroperator.cpp b/src/filewidgets/kdiroperator.cpp --- a/src/filewidgets/kdiroperator.cpp +++ b/src/filewidgets/kdiroperator.cpp @@ -1236,6 +1236,9 @@ void KDirOperator::cdUp() { QUrl tmp(d->currUrl); + // Remove excess trailing / from Url, otherwise for example + // /d/c// will go up to /d/c/ instead of /d/ + tmp.setPath(tmp.adjusted(QUrl::StripTrailingSlash).path().append(QLatin1Char('/'))); setUrl(tmp.resolved(QUrl(QStringLiteral(".."))), true); }