this happens inside the component dynamicrouter, before we move the route object into the attributes