Next.js Discord

Discord Forum

Handling Nested Route Navigation using Relative URL in App Routes

Unanswered
Polar bear posted this in #help-forum
Open in Discord
Polar bearOP
https://stackblitz.com/edit/stackblitz-starters-shzgvr?file=app%2Fpage.tsx

In the example above I am using relative path in Link Component to navigating to the nested route, but it replaces the parent route path and adding the child route path to url. I am not sure why this happening. In React Router Dom, there will be a way to attach the current parent path to navigation link. what is the equalent way of doing this in app router

1 Reply

Basset Artésien Normand
@Polar bear Did you ever solve this