How to set a default for unmatched parallel routes
Answered
Lilac posted this in #help-forum
LilacOP
I am wondering if it's possible to set a default page to display in the case of an unmatched parallel route. For instance, I have a parallel route setup for modal's. It works very well to display the modal on any page. Upon refreshing, it simply displays the modal with no underlying page. I am wondering if there's some way to ensure in these cases that the home page is rendered by default.
Answered by Lilac
I've found a solution which seems to be working. I've added /app/default.ts which exports the page I want to display in the case of a parallel route not having a matched route
2 Replies
LilacOP
bump ðŸ™
LilacOP
I've found a solution which seems to be working. I've added /app/default.ts which exports the page I want to display in the case of a parallel route not having a matched route
Answer