diff --git a/containments/desktop/plugins/folder/foldermodel.cpp b/containments/desktop/plugins/folder/foldermodel.cpp --- a/containments/desktop/plugins/folder/foldermodel.cpp +++ b/containments/desktop/plugins/folder/foldermodel.cpp @@ -665,9 +665,8 @@ if (file.hasLinkType()) { setUrl(file.readUrl()); } - } - else { - setUrl(item.url().toString()); + } else { + setUrl(item.targetUrl().toString()); } } } @@ -1294,7 +1293,7 @@ } } - return item.url(); + return item.targetUrl(); } else if (role == SizeRole) { bool isDir = data(index, IsDirRole).toBool();