I defined these two routes:
<Route name='register' handler={Register} > <Route name='registerpromotion' path='/registerpromotion/:promotionCode' handler={Register}/> </Route>
Thus, both routes use the same handler called Register.
In the case of the registerpromotion route, I pass the property and in the case of the register route, I do not.
I could not get this to work - the promotionCode property is always undefined.
Does anyone know if you can use the same handler for two routes?
Many thanks!
source share