Hello there, I have a job_localization custom type that has it's URL built based on another custom type name (content_relationship). E.g:
jobs/data-analyst/montreal
the job_localization page "montreal" is linked to the page data-analyst (another custom type).
However, since I am creating jobs/data-analyst/montreal but also jobs/data-scientist/montreal, Prismic is considering it as a duplicated UID: This value is already used by another job_localization document
How can I fix it and handle my current use case to scale?
Should I use a dummy field to create the slug instead of the UID? such as a Key text string?
Assuming:
Custom Type: job_localization - montreal
Custom Type: job - data-analyst
With Next's App router, you would have your page data inside /app/job_localization/[uid]/page.js.