Navigation in the menu tree is recorded by a WebPageLinkPS call that uses a custom hyperlink from a WebPageParseUrl call of a previous API call.
This process does not require any modification:
WebPageParseUrl("JavaScript Link in page EMPLOYEE", "DEFINITION\",\"", "\"", WEB_FLAG_IGNORE_WHITE_SPACE); WebPageLinkPS("Home", "EMPLOYEE"); // Link 1 WebPageLinkPS("JavaScript Link in page EMPLOYEE", "CR_PRODUCT_DEFINITION", 3);