Media-Ed-Online / intro-web-dev-2017aut

Site for course "Introduction to Web Design and Development."
https://media-ed-online.github.io/intro-web-dev-2017aut/
MIT License
12 stars 3 forks source link

Links #80

Open sUMmermixon opened 6 years ago

sUMmermixon commented 6 years ago

Why are none of my links working?

https://summermixon.github.io/web-dev-hw/Project2/

sUMmermixon commented 6 years ago

They work on some pages but not all ?? what the heck, I'm gonna rip my hair out.

JonSwallow commented 6 years ago

@sUMmermixon

\<h1><em>Tip</em></h1>
      <p><font size="4">Aluminum foil can be used to keep food moist, cook it evenly, and make clean up easier</font></p>
      <ul>
        <li><a href="../index.html">Ingredients List</a></li>
        <li><a href="./form.html">Share and Comment</a></li>
        <li><a href="./about.html">About Me</a></li>
      </ul>
    </body>
</html>

this is from your instructions page at which lives in the pages folder. Your first link to ingredients is right on.

<a href="form.html">

because to link to a page in the same folder all you need is the name.

ehorchover commented 6 years ago

@sUMmermixon I had the same problem! Not sure I completely follow @JonSwallow. Why does it not work on all the pages?

sUMmermixon commented 6 years ago

figured it out!! have to put ./pages/ in front of all of them on my index page.

sUMmermixon commented 6 years ago

and just ./ on the others

JonSwallow commented 6 years ago

@ehorchover
Check this issue out scroll down to my answer. Long version answer to Links

ehorchover commented 6 years ago

@JonSwallow Thank you!