Path I want to redirect:
/[lang]/cars/[brand]/[model]/[id] --> /[lang]/cars/fallback?id=[id]
The idea is that we have a list of cars that are being fetched dynamically as they change quite a lot. But that means when people try to go to this detail page, the page isn’t actually build yet (since the build process takes around 10 minutes or so). That means 10 minutes of potential lost clicks to a not found page.
Let’s say there are 10 brands & 30 models per brand, which gives quite a big combination. (I’ve seen some solutions with scripts generating all those URL’s not sure if this is the best way to go though?)
Preferably I would like to do this with real redirects to avoid having to go to the not found page first and then having this custom component page get the redirect url, to then fetch the car dynamically (although this is still better than having “not-found” pages)
I hope the problem is clear. Maybe anyone here as a better solution to this problem!
Thanks in advance!