Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialTeresa Balistreri
6,714 PointsWith article.html open, I click the preview icon. Index.html opens.
With article.html open, I click the preview icon. Index.html opens instead of article.html. From within the index page I can click the link to open my article.html page though. Why does the index page open instead of the article page when I try to preview it directly?
Teresa Balistreri
6,714 PointsI think my question above is unclear. I mean to say that when I am in my workspace working on creating my article.html document and I click on the icon in the upper right corner of the workspace--the icon that is suppose to show a preview of the page I am working on--the page I am working, article.html, does not open. Instead, index.html opens. I'm wondering if this is because I chose to name my directory and subdirectory "ARTICLES" and "2018" and perhaps the Treehouse course environment is expecting them to be "articles" and "2017", and can not find my article.html document and so it defaults to index.html.
I just tried creating ../articles/2017/ and moved "articles.html" into it. When I click on the preview icon, it still brings up index.html. Did I miss something in a lesson about this? Or is my space not working correctly.
1 Answer
Joshua Gabriel
6,790 PointsWhen you click on the preview button in the upper right hand corner, If the index.html file opens up; just add /article/2017/article.html at the end of the url.
Eunice Erika Am-is
1,081 PointsEunice Erika Am-is
1,081 PointsYou need to add the directory on the url. ex: http://port-80-jkposf1bvt.treehouse-app.com/articles/2017/article.html