HTML HTML Basics Images, Text and Links Understanding File Paths

Preview button takes me to Index of/ instead of a true preview. It is throwing off my file paths. How do I correct it?

When I hit the preview button it takes me to the index instead of the preview. I have to click on the file to get a preview. This is throwing of my file path and giving me Not Found returns. Thank you for any suggestions.

2 Answers

Steven Parker
Steven Parker
177,523 Points

The preview will automatically display a file with the standard landing page name "index.html". If you have no file by that name, it will show a folder index instead. Rename the file you wish to preview as "index.html" to make it shown by default.

If that doesn't resolve your issue, make a snapshot of your workspace and post the link to it here.

If you have a html file named article.html just add /article.html to link url on preview. See below

http://port-80-u3bwaxs25z.treehouse-app.com/article.html