Fix fucked up pages route handler