update router, support extra query and anchor