alexmingoia/koa-router — pull request #56 by ryankask (2014-03-02 07:49:42+00:00)
Title: Fix redirecting with route names

I've fixed the current behavior where this is happening:

```javascript
app.all('/login', function *() {
this.redirect(signInRoute); // instead of signInRoute.path
this.status = 301;
});
```

Note: I originally created a pull request that used route.path directly. I have switched to using ``router.url`` since it does the same but throws an exception if the route isn't found which is better IMO.

I'm not sure how this should work if there are params in the path.