fix inconsistencies in route path handling