I have a table of links that is being used for a menu. The menu expands if you click on a menuitem (link) that has subitems and collapses if you click on it again. Pretty standard menu action but here is the problem. The menuitem selected is passed in the URL and if you hit refresh then it appears as if you have clicked on the menu item. Thus it will toggle between expand/collapse.
What would be the best way to detect that someone has really clicked on the menu item link and not just hit refresh ?
If I pass something in the URL - it will be there as well on a refresh
If I use a form then the user gets the annoying "DO YOU WANT TO REPOST" alerts.