Fix for child pages not being hidden when transitioning away