Community
Participate
Working Groups
In the command service we have a notion of a "link" command, which can contain an href rather than a callback. This allows us to represent "commands" that really just change the page. When contributed as a link in a toolbar, the user can choose whether to click or ctrl-click the link and the right stuff happens. But when we are rendering inside a menu, we currently just change the window location. The user has no way to decide whether to open a new page or not. No matter which way we decide to handle it, we'll be wrong for half for users. ;-) So we need a way to put a real anchor tag in the menu.
If possible we should solve this for M7.
fixed. It was pretty straightforward to get the html into the menu item. That allowed things like hovering over the link to work, the browser context menu, etc. The harder part was that the dojo menu seems to want to eat the onclicks rather than let the underlying html elements handle it. So I had to code the onclick behavior to follow the link location (and check for the right modifier keys, etc.) However it appears to be working now.