Replies: 1 comment
-
So in my search of getting the overlapping dynamic routes working I found the following PR #9565. Take a look at the following file: https://github.com/zeit/next.js/pull/9565/files/test/integration/prerender-invalid-paths/pages/[foo]/[post].js |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
I am looking to get the concept of overlapping dynamic routes working.
The main concept of what I am building is a category/post like structure that is merged together.
This may be a bit vague but I will try to elaborate it.
Currently, I have the following structure:
I would like to enable dynamic category paths in the
index.js
so I can visit them using theLink
element.This I had working but I ran into the following problem, I could not get the
[package].js
working correctly because I could not get the currentcategory
in thegetStaticPaths
function.Is there a way I can get this working?
I don't have a demo repo yet because the current repo is private but if anyone would like to have a demo repo with the current code I could quickly make one.
If there is not a real way to do this I can always change my code up a bit but I don't like the idea to have the main category folders in my
pages
folder.Beta Was this translation helpful? Give feedback.
All reactions