Normalizing path in router.