filter routes with the id prefix before doing lookups

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #185
| License       | MIT
| Doc PR        | n/a