Dynamic intercepting route is intercepting normal routes
Unanswered
Exotic Shorthair posted this in #help-forum
Exotic ShorthairOP
Hey 👋
I'm working on a project that uses dynamic intercepting routes, but now the modal is intercepting normal routes.
So it does not matter if I try to go to any page like
I hope someone can check this and let me know if you have solved this kind of issues. This is my folder accommodation.
I'm working on a project that uses dynamic intercepting routes, but now the modal is intercepting normal routes.
So it does not matter if I try to go to any page like
/creator/rojo, the modal is always intercepting (I know is the modal cause on refresh is loading the page correctly, and I know is getting to the modal page and not the [...catchAll] or default.tsx cause is sending to the notFound route cause I implemented that logic into the [imageType] page)I hope someone can check this and let me know if you have solved this kind of issues. This is my folder accommodation.
-[imageType]
--[slug]
---page.tsx
--page.tsx
-@modal
--(.)[imageType]
---[slug]
----page.tsx
-creator
--[username]
---[[...view]]
----page.tsx
-category
--[slug]
---page.tsx4 Replies
@Exotic Shorthair Hey 👋
I'm working on a project that uses dynamic intercepting routes, but now the modal is intercepting normal routes.
So it does not matter if I try to go to any page like `/creator/rojo`, the `modal` is always intercepting (I know is the `modal` cause on refresh is loading the page correctly, and I know is getting to the modal page and not the `[...catchAll]` or `default.tsx` cause is sending to the notFound route cause I implemented that logic into the `[imageType]` page)
I hope someone can check this and let me know if you have solved this kind of issues. This is my folder accommodation.
root
-[imageType]
--[slug]
---page.tsx
--page.tsx
-@modal
--(.)[imageType]
---[slug]
----page.tsx
-creator
--[username]
---[[...view]]
----page.tsx
-category
--[slug]
---page.tsx
I believe that is intentional.
Docs: "Soft Navigation: During client-side navigation, Next.js will perform a partial render, changing the subpage within the slot, while maintaining the other slot's active subpages, even if they don't match the current URL.
https://nextjs.org/docs/app/building-your-application/routing/parallel-routes#active-state-and-navigation
Docs: "Soft Navigation: During client-side navigation, Next.js will perform a partial render, changing the subpage within the slot, while maintaining the other slot's active subpages, even if they don't match the current URL.
https://nextjs.org/docs/app/building-your-application/routing/parallel-routes#active-state-and-navigation
I might be misunderstanding your use case though
Exotic ShorthairOP
I think what it confuses me is why is giving priority to the modal instead of the normal route.
Thanks a lot for the info, pal. I have been all day on this
Thanks a lot for the info, pal. I have been all day on this