Fix bug when #navigate would concat query strings instead of replace