Resolve return index.html path automatically with template files.