diff --git a/src/public/app/services/tree.js b/src/public/app/services/tree.js index 3a3907585..a721b76e7 100644 --- a/src/public/app/services/tree.js +++ b/src/public/app/services/tree.js @@ -273,10 +273,23 @@ async function getNoteTitleWithPathAsSuffix(notePath) { .append($('').text(title)); if (path.length > 0) { - $titleWithPath - .append($('').text(` (${path.join(' / ')})`)); - } + const $notePath = $(''); + + $notePath.append($(`()`)); + for (let segmentIndex = 0; segmentIndex < path.length; segmentIndex++) { + $notePath.append($(``).text(path[segmentIndex])); + + if (segmentIndex < path.length - 1) { + $notePath.append($(``).text(" / ")); + } + } + + $notePath.append($(`))`)); + + $titleWithPath.append($notePath); + } + return $titleWithPath; }