codebrowser
codebrowser copied to clipboard
Use index.html in links where appropriate
For example in the top-level index.html
code like this is generated:
<tr><td class='folder'><a href='myProject/' class='opener' data-path='myProject'>[+]</a> <a href='myProject/'>myProject/</a></td><td></td></tr>
The myProject folder does contain an index.html
which is served by a properly configured webserver. If you just look at local files or an improperly configured web server, you will probably receive an error or look at an autogenerated index. One example where you don't really have control over the webserver is when serving artifacts from continous integration.
For this cases I would suggest to just always link to the index.html
.
If someone prefers "pretty urls", this could be an option of the generator or the webserver would need to be configured to redirect from /index.html
to /
.