Added support for not redirecting to index.html