Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Resource not found - Linking pages

amyw2998075
Level 1
Level 1

Hi,

I'm quite new with AEM and have encountered an issue that has left we quite stuck.

I'm using a NAV component to link my pages together however when I click the pages in preview I encounter an error:-

"Resource at '/content/stan/home-page/ContentSherlock.html' not found: No resource found

Cannot serve request to /content/stan/home-page/ContentSherlock.html in /libs/sling/servlet/errorhandler/404.jsp"

This is my nav component html -

<div data-sly-use.topnav="site-topnav.js">

    <nav>

      <a href="${topnav.root.path}.html">Home</a>

<ul>

                <li data-sly-repeat="${topnav.items}">

                    <a href="${item.path}.html">${item.title}</a>

                </li>

            </ul>

    </nav>

</div>

<a href="${topnav.root.path}/home-page.html"> </a>

This is the html at the top of each pages body.html -

    <div  data-sly-resource="${'site-topnav' @ resourceType='dig20011/components/structure/site-topnav'}></div>

Do I need to also use a sling to each page?

Thanks,

Amy.

0 Replies