Strange behavior when I combine the Grouper with the Precedence option in the routing template?

If I add the options in this order, the Grouper option is not working:

route.Grouper(routerInput.Groups),
route.Precedence(routerInput.Precedences),

If I add the options in this order, the Grouper option is working as expected:

route.Precedence(routerInput.Precedences),
route.Grouper(routerInput.Groups),

You found a bug :slight_smile:
The problem is that Precedence creates a group and overrides whatever groups were created before. Grouper appends the groups correctly. I’ve submitted a PR. Should be a quick fix.
Thanks for reporting the issue!

1 Like

Thank you for this quick response! :raised_hands: