fix redirect to index.html on packages