summaryrefslogtreecommitdiffstats
path: root/search/js
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2014-07-03 16:02:20 +0200
committerJörn Friedrich Dreyer <jfd@butonic.de>2014-07-03 16:02:20 +0200
commit0e2f51bbb80d6ef9fecb3ffeef3e7dd03343e7f6 (patch)
tree57b19137aaeef8a7ff59968d8efaa3f6d4b65690 /search/js
parent6c174813b65c6491927d1db9f19d06b7eca99ad7 (diff)
downloadnextcloud-server-0e2f51bbb80d6ef9fecb3ffeef3e7dd03343e7f6.tar.gz
nextcloud-server-0e2f51bbb80d6ef9fecb3ffeef3e7dd03343e7f6.zip
fix '' to '/' when determining parent for search result
Diffstat (limited to 'search/js')
-rw-r--r--search/js/result.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/search/js/result.js b/search/js/result.js
index 04e999c62ee..857b4fe1f22 100644
--- a/search/js/result.js
+++ b/search/js/result.js
@@ -72,6 +72,9 @@ OC.search.showResults=function(results){
if (type[i].path) {
var parent = OC.dirname(type[i].path);
+ if (parent === '') {
+ parent = '/';
+ }
var containerName = OC.basename(parent);
if (containerName === '') {
containerName = '/';