Next.js Discord

Discord Forum

Dynamic intercepting route is intercepting normal routes

Unanswered
Exotic Shorthair posted this in #help-forum
Open in Discord
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 /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.tsx

4 Replies

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