For a number of BugMonkey scripts I am developing, the scripts are targeted to specific pages within FogBugz (ie. New Case, New Wiki Article, Edit Wiki Article, Edit Case, etc.)
What is the best way to determine the page the user is currently viewing?
I realize this gets complicated, especially for things like switching from the view-mode to edit-mode of a case because a full-page-reload does not happen, but in most cases it does. So, is there any way to determine the current page?
As a bonus, if there is a way to detect, perhaps with an event handler, the switch from view-mode to edit-mode on a case, that would be great also!