diff --git a/scripts/indexmenu.js b/scripts/indexmenu.js
index d9b8d61..0f71a46 100644
--- a/scripts/indexmenu.js
+++ b/scripts/indexmenu.js
@@ -316,10 +316,11 @@ dTree.prototype.node = function (node, nodeId) {
(node.hns) ? str += node.hns : str += node.dokuid;
str += '"' + ' title="' + node.name + '"' + jsfnc;
str += ' onclick="javascript: ' + this.treeName + '.s(' + nodeId + ');"';
+ str += ' data-wiki-id="' + node.dokuid + '"';
str += '>' + node.name + '';
}
else if (node.pid !== this.root.id) {
- str += '' + node.name + '';
+ str += '' + node.name + '';
} else {
str += node.name;
}
diff --git a/syntax/indexmenu.php b/syntax/indexmenu.php
index b27c2bc..d91322d 100644
--- a/syntax/indexmenu.php
+++ b/syntax/indexmenu.php
@@ -851,7 +851,7 @@ public function formatIndexmenuItem($item)
if ($markCurrentPage) {
$ret .= '';
}
- $ret .= ''
+ $ret .= ''
. $item['title']
. '';
if ($markCurrentPage) {