router: fix route path generation