Fix a bug where all the routes from the second controller onwards were
incorrectly connected.
Merge pull request #2987 from bar/3.0-mapResources

Fix a bug where all the routes from the second controller onwards were incorrectly connected.