fix bug find path of redirect pages