Fix pages route recognition