Linking an image to an internal page

I am trying to link an image in one page to another page on my site.

Assume I have this structure under content:
folder1/page1.md
folder2/page2.md

In the page2.md I have an image that I want to be linked to page1, so when I click on the image it opens up page1.
I have something like:

<a class="circle link" href="folder1/page1"...>Text</a>

The image is defined by class “circle”. But when I click on the image I get a 404 page not found message. What am I doing wrong?

http://webreference.com/html/tutorial2/3.html

Nevermind, I found that I had a typo in the “slug” and that was the reason.