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 trial
Richard Nash
24,862 Pointslinks not working in workspace document...
I'm building a website in workspaces and i'm starting to add relative links, but they do not appear to be working. I put my html pages in an html folder one level down from the index page, so i use the relative path of href="html/article.html" but when I preview the site and click on the link it does not take me to the appropriate place. Any ideas as to why this might be?
4 Answers
Phil Pickering
1,343 PointsJust done a quick test in Workspaces and what you've described appears to be working fine.
Can you post a code snippet?
Richard Nash
24,862 PointsHere you go...
<figure class="article">
<img class="article-image" src="img/introduction_graphic.svg">
<figcaption class="article-caption">
<h1 class="aticle-caption-title">Introduction.</h1>
<h2 class="article-caption-subtitle">my brain on bits.</h2>
<p class="article-caption-preview">This website is an attempt to get the thoughts in my head into the real world in a tangible form. I have chosen bits and bytes to get my points accross, and I'm glad that you are coming along...</p>
<a href="html/article.html" class="article-caption-link">Read More...</a>
</figcaption>
</figure>
Phil Pickering
1,343 PointsYep, the relative link is working fine using that code in the test workspace I set up.
Maybe create a new workspace and copy/paste your existing code?
Richard Nash
24,862 PointsI downloaded the project from workspaces and dropped it into brackets and the link worked just fine, so I don't think it's the project. There must be an issue in workspaces somewhere... :-/