add check to skip route check if uri matches a Pages uri