Hey, I'm looking to migrate a site to medusa + next 13 with app routing. i want to recreate existing url structure which:
- is up to three categories deep
- allows products at category depth 1, 2 or 3
- if no product as last segment, then show cat index
in the backend categories have a unique handle, e.g. 'sport/tennis/shoes'. products also have a handle, which is unique.
the url would consist of up to 4 segments, and the last segment may, or may not, be a product.
is there a 'simple' way to handle this? i've searched high and low but haven't found an example which fits. any pointers at all would be very much appreciated.