fixed a bug with routing. only the path should be used for matching routes. not the params