I've run into that issue in the past as well. Eric has created a pretty useful widget that will set the active class for the navigation tree based on the name of it.
You just drop this widget on each page and it will set the navigation item to active based on the caption of it.
You could also use jQuery to set the active state based on a class. Here is a quick example.
Hope this helps!
It should just set the active class the first time you click. Are you using the same (master)layout that contains the navigation when you are switching pages? If it is not the same it will refresh the navigation.
What I would like, not sure if this is even possible, or if you’d want to do it this way is:
Detect what page I am on.
is there a link that goes to this page, set a class on that element.
have links have unique page names
pages have page names, if they match up, add an active class
Im sure there are multiple ways of doing this, each with their own pros and cons, but might be interesting to see if we can make a scalable user friendly way to solve this issue :D