Treat the "open parent" link click more like the right-click menu entry for open parent. The latter is still different because it opens the enclosing document, not necessarily a folder if the doc result is embedded. But they now behave the same if the parent is a folder
This commit is contained in:
@@ -179,7 +179,14 @@ void ResListPager::displayDoc(RclConfig *config, int i, Rcl::Doc& doc,
|
||||
titleOrFilename = utf8fn;
|
||||
}
|
||||
|
||||
// Url for the parent directory. We strip the file:// part for local
|
||||
// paths
|
||||
string parenturl = url_parentfolder(url);
|
||||
{
|
||||
string localpath = fileurltolocalpath(parenturl);
|
||||
if (!localpath.empty())
|
||||
parenturl = localpath;
|
||||
}
|
||||
|
||||
// Result number
|
||||
char numbuf[20];
|
||||
|
||||
Reference in New Issue
Block a user