Added routes to the search module

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #1901
| Refs tickets  | #1788
| License       | MIT
| Doc PR        | ---

This also fixes #1901.
some existing urls might point to "main" - it might be better to leave this in for now.