I am working on a NEXTJS project and utilizing SSR for data fetching. However, I am trying to implement the following scenario:
When users land on the "/" route, they should be presented with a random product detail page. But if they search for a specific product and click on it, they should be redirected to a URL like '/product-01'.
I already know how to fetch random products, so please focus solely on helping me with the routing issue. I want to achieve this functionality within a single page.js file.
In conclusion, my question is: How can I utilize the next js route when the route parameter is empty?