if path is blank, set it to index.html