I just implemented it and it works well. However I have found one issue. When I turned on the markCurrentItem (CurrentTree is Off), I realized that all menu items left with href=”#” are set to ‘current’, just after one is selected and then the page is reloaded, as the address of the page is now my-page.html#.
Similarly, if there is any local link on the page (e.g. ‘to-top’ linking to an <id> like #container) and is selected, the URL has now appended the id to the page name (my-page.html#container) and all menu items with href=”#” are ‘current’.
More interesting is that when I changed several items in the menu to empty href (href=””), immediately after reloading the page all those items were set to the ‘current’ state.