Fixes Issue #113: Navigation page active is not properly detected