fix bug in routes generation

- routes starting with path params need to go last,
  because of the selection order

- restore accidentally removed routes generation link