changes query stirng to /:from/:to/?