KOSLA
TTCTheo's Typesafe Cult
•Created by KOSLA on 1/29/2024 in #questions
Optional Dynamic Routing Problem
thank you for taking the time to think of this problem
it is in the project requirements for the affiliate slug to be optional
i came up with a solution for it not to be optional meaning that if there is no affiliate then thr url would be containing
domain.com/store/en/products
or in case of an affiliate
domain.com/affiliate-slug/en/products
but i want to think of the case of it being REALLY optional lol
6 replies