Router: remove query string for the uri performed