fix infinite redirect when click link to index.html in sub paths