Router: fix get parameters breaking the routes