Next.js Discord

Discord Forum

Page not found

Answered
Samir posted this in #help-forum
Open in Discord
I have app/dashboard/profile/page.tsx but when I go /dashboard/profile it says not found and If I have a button link to that profile page on dashboard. It just redirects but after refresh it says not found
Answered by Ray
try changing the file name in the parallel route to default.tsx
View full answer

6 Replies

I also have parallel routes in dashboard folder
app/dashboard/
├── @balance
│   ├── component.tsx
│   └── page.tsx
├── @link
│   ├── link
│   │   ├── .....
│   └── page.tsx
├── @links
│   ├── loading.tsx
│   └── page.tsx
├── @transactions
│   ├── loading.tsx
│   └── page.tsx
├── component
│   ├── columns
│   │   ├── links.tsx
│   │   └── transactions.tsx
│   ├── data-table.tsx
│   ├── editor.tsx
│   └── fancy-input.tsx
├── layout.tsx
├── page.tsx
└── profile
    ├── account-settings.tsx
    ├── page.tsx
    ├── profile-avatar.tsx
    └── profile-name.tsx

9 directories, 25 files
Answer
from page.txt?
oh yeah it worked
@Samir oh yeah it worked
yes you need to have default.tsx for unmatched slot, otherwise it will throw 404