Added a duplicate flag

Added a duplicate flag that will enable/disable returning to the same route, useful for wildcards in the route.