#Navigation

9 messages · Page 1 of 1 (latest)

quiet cypress
#

Hello there, i'm pretty new to NextJs, i wanted to know how could i build a navigation ? I mean, i have the file "pages.js" in my /app, and i created some directories into /app so it means i have things like :

/app
--/blog
--/test
page.js
layout.js

I'm in my "page.js", and i created a <Link href="/blog">Blog<Link/> and it doesnt works, did i missed something ?

limpid flareBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

quiet cypress
indigo jacinth
# quiet cypress

inside blog there must be also a page.js, that displays the page of the blog. So just rename your blog.js to page.js

quiet cypress
#

Ow, ok thx, so for every navigation i want to create, it must be named "page.js" ?

#

at least it works, thanks mate!

indigo jacinth
indigo jacinth
limpid flareBOT
#
✅ Success!

This question has been marked as answered! If you have any other questions, feel free to create another post

Jump to answer

[Click here](#1250790388533428365 message)