Fix non-REST path generation in router