Fixes secondary segments routing bug in Angular.