Search
Setup for Free
TTC
Theo's Typesafe Cult
β’
2y ago
Edgar24
Change page
Hi
, I
'm a beginner and I don
't know why page2 isn
't found when I use
<Link
href
=
{
"
/page2
"
}
can somebody help me understand please
?
Theo's Typesafe Cult
Join
26,236
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Β© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
P
Paito01
β’
6/30/24, 8:24 AM
Hey
@Edgar24
Routing in Nextjs works through folder names and file names
(like page
.tsx or layout
.tsx
)
.
To define the route
/page2
Your file structure should be app
/page2
/page
.tsx
Here
βs more info in the nextjs docs
https://nextjs.org/docs/app/building-your-application/routing/defining-routes
Routing: Defining Routes | Next.js
Learn how to create your first route in Next
.js
.
P
Paito01
Hey @Edgar24 Routing in Nextjs works through folder names and file names (like...
E
Edgar24
OP
β’
6/30/24, 3:47 PM
Thanks
!
!
! I appreciate your answer
. I was able to figure it out but K didn
βt know how to delete my question
. Hope it helps someone else
Similar Threads
React query Refetching on page change
TTC
Theo's Typesafe Cult / questions
3y ago
import pageData... VS pageData = await fetchPageData()...
TTC
Theo's Typesafe Cult / questions
3y ago
Revalidating tRPC server request/page after email change
TTC
Theo's Typesafe Cult / questions
3y ago
React Typescript custom pageLayout
TTC
Theo's Typesafe Cult / questions
4y ago