I have two routes:
can.route(":foo")
can.route("foo/:bar")
And I navigate between them with:
can.route.attr('foo', 'foo'); -> http://localhost/foo
can.route.attr('bar', 'bar'); -> http://localhost/foo?bar=bar
How shall I replace existing route attributes so that the result of second route will be: http://localhost/bar