diff options
-rw-r--r-- | search/js/result.js | 3 |
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 = '/'; |