Why is the modal not appearing when using a parallel route?
Unanswered
JM posted this in #help-forum
![Avatar](https://cdn.discordapp.com/embed/avatars/1.png)
JMOP
Hello. I've created a folder structure as shown in the image. I'm trying to set up parallel routing for @modal's page.tsx and [resultId]'s page.tsx under the /result/[resultId] path. However, the modal is not displaying as expected. I'm struggling with parallel routing, and I would appreciate your help. Thank you.
router
/(result)/result/layout.tsx
router
L (result)
L result
@modal
L default.tsx
L page.tsx
@result
L [resultId]
L page.tsx
default.tsx
layout.tsx
/(result)/result/layout.tsx
export default async function ResultLayout(props: {
children: React.ReactNode;
modal: React.ReactNode;
result: React.ReactNode;
}) {
return (
<>
{props.modal}
<NavBar />
<main>
{props.children}
{props.result}
</main>
<Footer />
</>
);
}
![Image](https://cdn.discordapp.com/attachments/1188489049778966638/1188489050051575898/parell.png?ex=659ab5ae&is=658840ae&hm=7a27d17656359cc5e9fb3ef7130e0f620c583ad21d1040c94e0f11c23b638ed3&)
4 Replies
![Avatar](https://cdn.discordapp.com/avatars/743561772069421169/3c5d689eee4459a24fc420063411c016.webp?size=256)
Ray
does the modal have css setup properly?
maybe try move
{props.modal}
below <Footer />
![Avatar](https://cdn.discordapp.com/embed/avatars/1.png)
JMOP
Yes, there is CSS in the modal, and console.log is not being printed. It seems like the modal's page.tsx itself is not rendering.
![Avatar](https://cdn.discordapp.com/avatars/743561772069421169/3c5d689eee4459a24fc420063411c016.webp?size=256)
Ray
try moving the
@modal/page.tsx
to @modal/[resultId]/page.tsx