Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML HTML Basics Images, Text and Links Understanding File Paths

when i preview workspace the article and index show same webpage

Even though i have followed the video correctly both article and index display the same webpage EVEN though they are programmed completely differently!!

https://w.trhou.se/gxtl03s64q

https://w.trhou.se/xjmtieq11m

Steven Parker
Steven Parker
218,639 Points

We can take a look if you make a snapshot of your workspace and post the link to it here.

Rajvinder Singh
Rajvinder Singh
3,936 Points

Most likely the issue is that the url needs to be changed like how they discussed in the course. For an example, if you want to view the article.html page, then add article.html to the end of the port url in the browser which displays your work. This should open up the intended page.

If Visual Studio Code did this i think the alot of people would choose another platform.. What if we end up with like 5 pages, for each one we keep needing to change the url?

1 Answer

Steven Parker
Steven Parker
218,639 Points

The "Articles" link in the header is indeed pointing to the same page. Later in the course it will be changed to go to a different part of the page, but it will still be the same page.

But if you go further down the page you will see the "Read more" links which do go to the other page.